Skip to content
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

跨域请求 #3

Closed
Miriring opened this issue Oct 26, 2017 · 1 comment
Closed

跨域请求 #3

Miriring opened this issue Oct 26, 2017 · 1 comment

Comments

@Miriring
Copy link

能够支持Jsonp吗

@wendux
Copy link
Owner

wendux commented Oct 26, 2017

fly不会支持jsonp,原因有三点:

  1. 由于jsonp本质上是通过可跨域html标签来完成的,并非通过http engine (XmlHttprequest)来完成. 实现其实是dom操作。
  2. jsonp只是在浏览器环境中需要,而其它环境可能并不存在dom。
  3. 在fly中,如果您有跨域需求,使用CORS会更简单。

@wendux wendux closed this as completed Oct 26, 2017
@wendux wendux reopened this Oct 27, 2017
@wendux wendux closed this as completed Nov 1, 2017
@wendux wendux mentioned this issue Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants