大家好,又见面了,我是你们的朋友全栈君。
<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>
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/159079.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...