apache设置跨域请求


DocumentRoot D:/xampp/htdocs/bss/
ServerName ims.drcloud.cn
ErrorLog "logs/dummy-host2.example.com-error.log"
CustomLog "logs/dummy-host2.example.com-access.log" common
Header set Access-Control-Allow-Origin *
Header set Access-Control-Allow-Credentials true
Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept"
#Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"

转载于:https://www.cnblogs.com/gaogaoxingxing/p/10579577.html

你可能感兴趣的:(apache设置跨域请求)