-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
跨域失败 #36
Comments
问题2 自定义请求头不再response的access-control-allow-headers,导致跨域失败 问题3 配置了地址重写和跨域时 Options请求返回的状态码是307 Internal Redirect 导致跨域失败 |
我也遇到了同样的问题,当<script>标签里增加了crossorigin 属性后,XSwitch代理失败,反馈错误: |
我也遇到了这个问题 |
想保留crossorigin的话 可以尝试一下解决跨域问题,给你的本地服务设置跨域白名单(CORS)如果是webpack 可以参考:https://stackoverflow.com/questions/31602697/webpack-dev-server-cors-issue,其他的服务也可以做对应设置 |
跨域时候请求似乎还是会打到服务器
但是服务器报了500错误,导致跨域请求还是失败了
有没有办法拦截Option请求,让响应码总是200
The text was updated successfully, but these errors were encountered: