.htaccess文件中
<IfModule mod_headers.c>
Header add Access-Control-Allow-Origin: *
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
.htaccess文件中
<IfModule mod_headers.c>
Header add Access-Control-Allow-Origin: *
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>