TongWeb跨域问题- No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

TongWeb跨域问题

在进行国产化适配的过程中,出现了Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

解决方案

1.尝试使用反向代理和前后端COR配置,均无效

2.Get请求可以,而Options请求被拒绝

3.发现运维配置过程中,禁用了options方法.
TongWeb跨域问题- No ‘Access-Control-Allow-Origin’ header is present on the requested resource._第1张图片

你可能感兴趣的:(服务器,nginx,web)