Skip to content

Fix: respect "withCredentials: false" in RCTNetworking iOS#24629

Closed
DimitryDushkin wants to merge 1 commit intofacebook:masterfrom
DimitryDushkin:fix/ios-networking-respect-with-credentials
Closed

Fix: respect "withCredentials: false" in RCTNetworking iOS#24629
DimitryDushkin wants to merge 1 commit intofacebook:masterfrom
DimitryDushkin:fix/ios-networking-respect-with-credentials

Conversation

@DimitryDushkin
Copy link
Copy Markdown

@DimitryDushkin DimitryDushkin commented Apr 26, 2019

Fixes #24080.

Summary

Even with withCredentials: false network requests still sending cookies. Fix this behaviour according to https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials.

Changelog

[iOS] [Fixed] - Respect "withCredentials: false" in network requests

Test Plan

  1. GET request https://yandex.ru (it will set "yandexuid" cookie in response).
  2. GET request https://yandex.ru again with withCredentials: false

Actual behaviour: "Cookies" header is present in request.
Expected behaviour: no "Cookies" header in request

Loading
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. Merged This PR has been merged. Platform: iOS iOS applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS: respect "withCredentials: false" in XMLHttpRequest

4 participants