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

Fix Safari CORS with Facebook & potentially other providers #208

Merged
merged 3 commits into from
Apr 30, 2016

Conversation

ldesplat
Copy link
Contributor

Based on #206 and Fixes #191.

Could I get someone to review this?

The crux of the issue is that Safari, due to CORS and the way Facebook sometimes does the redirect, it will not send the state cookie along. So, when we see no token (usually happens during development due to bad settings), we attempt to refresh the page using the meta keyword (not using javascript) and this ensures that Safari sends us the cookie.

We attempt to not have infinite loops with adding the refresh query parameter.

@ldesplat ldesplat added this to the 7.6.1 milestone Apr 23, 2016
@ldesplat ldesplat added the bug Bug or defect label Apr 23, 2016
@ldesplat ldesplat merged commit 951ccec into hapijs:master Apr 30, 2016
@hueniverse
Copy link
Contributor

@ldesplat Any reason this wasn't applied to OAuth 1.0 as well? I think I'm seeing this issue with a few Twitter requests.

@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can not login with Facebook on Safari
3 participants