Skip to content

b/68251551: Send headers via URL Param to avoid CORS preflight round-trip. #322

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

Merged
merged 4 commits into from
Nov 17, 2017

Conversation

mikelehen
Copy link
Contributor

I verified that our Authorization header is sent via the the '$httpHeaders' URL parameter now, the OPTIONS network round-trip no longer occurs, and our authentication token is still correctly respected by the backend.

Copy link

@wenbozhu wenbozhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikelehen
Copy link
Contributor Author

Thanks @wenbozhu I added that in a comment (it's not convenient to use the actual constant from closure from here, and since it can't ever change, I don't think it's worth the trouble).

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Magic!

@wilhuff wilhuff assigned mikelehen and unassigned wilhuff Nov 17, 2017
@wilhuff
Copy link
Contributor

wilhuff commented Nov 17, 2017

Please add a note to the changelog as a part of this PR.

@mikelehen mikelehen merged commit 796828d into master Nov 17, 2017
@mikelehen mikelehen deleted the mikelehen-avoid-preflight branch November 17, 2017 16:12
@mikelehen
Copy link
Contributor Author

Agh! Good call, but I already pushed the merge button. :-( I'll send another PR...

@firebase firebase locked and limited conversation to collaborators Oct 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants