-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
iOS: respect "withCredentials: false" in XMLHttpRequest #24080
Comments
@DimitryDushkin yes please; could you send a PR over and link to this issue + tag me. Are you also able to confirm if this is the same behaviour on Android? Thanks |
It looks like you are using an older version of React Native. Please update to the latest release, v0.59 and verify if the issue still exists. The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running `react-native info` on a project using the latest release.
|
I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while. If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here. |
Summary: Fixes #24080. 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. [iOS] [Fixed] - Respect "withCredentials: false" in network requests Pull Request resolved: #24629 Differential Revision: D15120420 Pulled By: cpojer fbshipit-source-id: 78b9924436b02584c4fc1aa04763dff085eea78c
🐛 Bug Report
Even with
withCredentials: false
network requests still sending cookies.To Reproduce
yandexuid
cookie in response)withCredentials: false
and you will see that cookies are sentExpected Behavior
No cookies with
withCredentials: false
.Code Example
Actually there is very easy fix to it
If everyone is okay I can make PR for it.
Environment
The text was updated successfully, but these errors were encountered: