-
Notifications
You must be signed in to change notification settings - Fork 639
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
使用flyio发出的GET请求也会先发一个预检请求OPTIONS #134
Comments
你fly中有没有设置自定义header? 跨域请求含有自定义header的话就会发起预检,即使是get请求。 你对比一下fly和原生的request header看看有什么区别。 |
@wendux 是否可以在 isGet 时也 delete headers.contentType呢? BTW,你写的代码真好看 |
嗯 get请求时content type没有意义 节后会删掉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
version
code
使用原生XMLHttpRequest发出同样的get请求便不会发OPTIONS
这个接口是第三方的,发预检请求便会出错,若直接是get请求则不会
The text was updated successfully, but these errors were encountered: