Apache 服务器跨域问题解决方法
2021-03-05 09:27
标签:自定义 class let options header post eth col httpd 修改配置文件 httpd.conf Enjoy it ! Apache 服务器跨域问题解决方法 标签:自定义 class let options header post eth col httpd 原文地址:https://www.cnblogs.com/daizhongxing/p/12909644.htmlHeader set Access-Control-Allow-Origin * //允许所有ip访问,请根据实际需要指定ip
Header set Access-Control-Allow-Credentials true
Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, authorization" //authorization是自定义的授权字段
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS, HEAD, PUT, DELETE, PATCH" //允许所有方法,请根据实际需要做适当删减
文章标题:Apache 服务器跨域问题解决方法
文章链接:http://soscw.com/index.php/essay/60382.html