Access to XMLHttpRequest at ‘http://mis.jiaxianghudong.com/mis/v1/public/login’ from origin ‘http://mis.weiletest.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: Redirect is not allowed for a preflight request.
mis.weiletest.com想访问mis.jiaxianghudong.com/mis/v1后端的接口造成的跨域问题
解决方法,在后端的反向代理nginx 的server配置加上即可
proxy_set_header X-CROS true;
07-28
4271