-
Notifications
You must be signed in to change notification settings - Fork 25k
iOS websocket: include cookies with request #5630
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
Conversation
|
By analyzing the blame information on this pull request, we identified @nicklockwood, @hharnisc and @joenoon to be potential reviewers. |
|
@facebook-github-bot import |
|
Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/445496482317600/int_phab to review. |
|
Hi @martinbigio, please let me know if you need anything else on this PR. Thanks! |
|
@facebook-github-bot shipit |
|
Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/445496482317600/int_phab to review. |
This commit brings Android in line with iOS WebSockets by sending along cookies from the shared CookieManager. See: facebook#5630
|
This is not working for me on #master. I expect the first handshake request to send the httpOnly cookies that were previously created using fetch, but they are not send. Is this still working for you on master @jellevandenhooff ? |
|
Hi @rodrigopivi, I think you're right that this no longer works on master. While looking at #7167, I found that 205b5d4 broke this commit by switching from |
This commit brings Android in line with iOS WebSockets by sending along cookies from the shared CookieManager. See: facebook/react-native#5630
This PR modifies the Websocket implementation on iOS to pass cookies to the server. Sending cookies is useful for clients that wish to access protected Websocket endpoints without creating a new authentication protocol.