CORS(Cross-Origin-Resource-Share,跨域资源共享),由服务端设置响应头通过浏览器的同源策略限制
1. Access-Control-Allow-Origin: *;
2. Access-Control-Allow-Methods: *;
3. Access-Control-Allow-Headers: *;
4. Access-Control-Allow-Credentials: true;
CORS(Cross-Origin-Resource-Share,跨域资源共享),由服务端设置响应头通过浏览器的同源策略限制
1. Access-Control-Allow-Origin: *;
2. Access-Control-Allow-Methods: *;
3. Access-Control-Allow-Headers: *;
4. Access-Control-Allow-Credentials: true;