home page
Statistics
sponsor
Leaving a message.
about
more
Friendly chain
wallpaper
live broadcast
Search
one
Joe - a personal Typecho theme
32064 Reading
two
Joe open source directory program system
11826 Reading
three
Typecho custom background editor function
8241 Reading
four
Joe theme is automatically updated
7507 Reading
five
Joe Theme Custom Matching Color Tutorial
4410 Reading
web front end
CSS
React
Vue 2.0
Vue 3.0
JavaScript
TypeScript
Typecho
Applet
MacCMS
other
life
Sign in
Search
https://78.al
Accumulated writing
seventy-six
Articles
Accumulated receipt
3,721
Comments
home page
column
web front end
CSS
React
Vue 2.0
Vue 3.0
JavaScript
TypeScript
Typecho
Applet
MacCMS
other
life
page
Statistics
sponsor
Leaving a message.
about
Friendly chain
wallpaper
live broadcast
Search to
one
Article and
MacCMS
Results for
2021-02-18
Apple cms settings allow cross domain
Open the Apple cms site and find the following location: application/api/controller/Provide.php Fill in the following information in the corresponding location: allow some domain names to use $origin=isset ($_SERVER ['HTTP_ORIGIN '])$_
SERVER['HTTP_ORIGIN'] : '';
//Cross domain domain names are allowed to be written in the array,
$allow_origin = array('
http://xxx.com
','
http://xxx.cn
' );
if(in_array($origin, $allow_origin)){
header('Access-Control-Allow-Origin:'.$
origin);
}Allow everyone to use the header ('Access Control Allow Origin: * ');
February 18, 2021
2348 Reading
9 Comments
18 likes