nginx php 配置跨域

我使用的是lnmp一键安装包

在虚拟记住添加
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'OPTION, POST, GET'; add_header 'Access-Control-Allow-Headers' 'X-Requested-With, Content-Type';

 

posted @ 2018-03-04 14:59  StudyBlog  阅读(2553)  评论(0编辑  收藏  举报