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

Triggering CORS pre-flighting on firefox #5

Open
DanielHeath opened this issue Oct 13, 2015 · 1 comment
Open

Triggering CORS pre-flighting on firefox #5

DanielHeath opened this issue Oct 13, 2015 · 1 comment

Comments

@DanielHeath
Copy link

The x-requested-with header set in https://github.com/jedmao/iso-http/blob/master/lib/browser/Http.ts#L18 causes firefox to perform a CORS request where it otherwise wouldn't need to.

This adds ~100ms to XHR requests for mobile users. Does it make sense for clients that want this behavior to specify it themselves rather than baking it into the library?

@DanielHeath
Copy link
Author

http://stackoverflow.com/questions/8163703/cross-domain-ajax-doesnt-send-x-requested-with-header explains what jQuery does in the same situation and why.

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