PHP服务器静态文件跨域配置

标签:2024-01-09 16:59:20

php网站apache服务器静态资源跨域问题,可以在.htaccess文件中进行跨域配置

<IfModule mod_headers.c>  
    Header set Access-Control-Allow-Origin "*"  
    Header set Access-Control-Allow-Methods "GET"  
    Header set Access-Control-Allow-Headers "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range"  
</IfModule>
原文出处:http://www.dongblog.com/notes/48.html
来源:博客网 转载请注明出处!

活跃用户

思念
Ta还没有签名
那个夏天记忆
Ta还没有签名
NOC平台
Ta还没有签名
竹夏
Ta还没有签名

友情链接


Warning: Smarty error: unable to read resource: "../../../templates/default/./common/foot/footer_index.htm" in /usr/home/hyu3925200001/htdocs/common/smarty/Smarty.class.php on line 1093

Warning: Smarty error: unable to read resource: "../../../templates/default/./common/foot/footer_index.htm" in /usr/home/hyu3925200001/htdocs/common/smarty/Smarty.class.php on line 1093