apache设置跨域请求

<VirtualHost *:8888>
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"
</VirtualHost>

posted @ 2019-03-22 17:20  没事就更  阅读(6202)  评论(0编辑  收藏  举报