<VirtualHost *:80>
DocumentRoot "D:/project/xuanhua_shop/public"
ServerName 192.168.18.182
#servername后的ip为接口所在服务器IP
<Directory "D:/project/xuanhua_shop/public">
## Options Indexes FollowSymLinks MultiViews
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride all
Require all granted
Header set Access-Control-Allow-Origin *
##Header set Access-Control-Allow-Origin *.text.com
Header set Access-Control-Allow-Methods *
Header set Access-Control-Allow-Headers *
##Header set Access-Control-Allow-Methods 'GET, POST, OPTIONS, PUT, DELETE';;
##Header set Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';
</Directory>
</VirtualHost>
apache 配置跨域
最新推荐文章于 2024-06-26 12:11:08 发布
关键词由CSDN通过智能技术生成