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

XMLHttpRequest does not work if remote host does not implement OPTIONS #6

Open
ArnaudBuchholz opened this issue Feb 9, 2016 · 1 comment

Comments

@ArnaudBuchholz
Copy link
Owner

Cross-Origin XMLHttpRequest implies an initial call to the remote host with the OPTIONS verb (this is named the preflight request).
If the remote server does not implement OPTIONS, the call ends with a 501 "Not implemented" error.

@ArnaudBuchholz
Copy link
Owner Author

One alternative would be to throw the XMLHttpRequest inside the extension. Indeed, it looks like it skips the preflight request.

I need to verify:

  1. If the preflight request is skipped as expected
  2. If I can force an synchronous XHR inside the extension
  3. I can hook all page XHR queries to go through this mechanism

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

1 participant