在nginx配置中加入
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers “Origin, X-Requested-With, Content-Type, Accept”;
add_header Access-Control-Allow-Methods “GET, POST, OPTIONS”;
vue请求php跨域问题解决
最新推荐文章于 2024-03-08 16:38:32 发布