vue Access to XMLHttpRequest at xxx by CORS 跨域访问php 问题 解决方式
vue Access to XMLHttpRequest at xxx by CORS 跨域问题前端解决方式
nginx:
location /jsonapi {
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' '*';
# add_header 'Ac
原创
2021-07-16 15:26:48 ·
468 阅读 ·
0 评论