Skip to content

Conversation

@jellevandenhooff
Copy link

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.

@facebook-github-bot
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @nicklockwood, @hharnisc and @joenoon to be potential reviewers.

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Jan 29, 2016
@martinbigio
Copy link
Contributor

@facebook-github-bot import

@facebook-github-bot
Copy link
Contributor

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.

@jellevandenhooff
Copy link
Author

Hi @martinbigio, please let me know if you need anything else on this PR. Thanks!

@nicklockwood
Copy link
Contributor

@facebook-github-bot shipit

@facebook-github-bot
Copy link
Contributor

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.

@ghost ghost closed this in debcac5 Feb 1, 2016
bradleyboy added a commit to bradleyboy/react-native that referenced this pull request Feb 21, 2016
This commit brings Android in line with iOS WebSockets by sending along cookies from the shared CookieManager. See: facebook#5630
@rodrigopivi
Copy link

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 ?

@jellevandenhooff
Copy link
Author

jellevandenhooff commented May 19, 2016

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 initWithURL to initWithURLRequest. See my comment in #7167.

ghost pushed a commit that referenced this pull request Sep 19, 2016
Summary:
This commit brings Android in line with iOS WebSockets by sending along cookies from the shared CookieManager. See: #5630
Closes #6067

Differential Revision: D3841122

Pulled By: mkonicek

fbshipit-source-id: 6607424feeb31c9da4e370ebe4b33dbbedc0a446
ghost pushed a commit that referenced this pull request Sep 22, 2016
Summary:
This commit brings Android in line with iOS WebSockets by sending along cookies from the shared CookieManager. See: #5630
Closes #6067

Differential Revision: D3841122

Pulled By: wutalman

fbshipit-source-id: 6dae03bdf1c4599f12c0b191fcc56a61952fb59e
tungdo194 pushed a commit to tungdo194/rn-test that referenced this pull request Apr 28, 2024
This commit brings Android in line with iOS WebSockets by sending along cookies from the shared CookieManager. See: facebook/react-native#5630
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants