位置:
需要跨域的vhosts配置文件的
代码语言:javascript复制<Directory>
Header set Access-Control-Allow-Origin *
#Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"
#Header set Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, token"
#Header set Access-Control-Max-Age 3600
#Header set Access-Control-Allow-Credentials true
</Directory>
只需要开始的第一个配置就可以了。(可能一些复杂的配置需要用到下面的东西)