Created
January 3, 2018 15:39
-
-
Save jamesreggio/fd3613c9af1dfa1938936e41eb16d6be to your computer and use it in GitHub Desktop.
Patch to fix the default value of `XMLHttpRequest.withCredentials` option on React Native v0.50.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 15d2d187e745eed8c13e5132798de03920c39db0 Mon Sep 17 00:00:00 2001 | |
From: James Reggio <[email protected]> | |
Date: Thu, 16 Nov 2017 19:58:31 -0500 | |
Subject: [PATCH] make XMLHttpRequest.withCredentials default to false, per | |
spec | |
--- | |
Libraries/Network/XMLHttpRequest.js | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/Libraries/Network/XMLHttpRequest.js b/Libraries/Network/XMLHttpRequest.js | |
index be5905f..a7d726f 100644 | |
--- a/Libraries/Network/XMLHttpRequest.js | |
+++ b/Libraries/Network/XMLHttpRequest.js | |
@@ -125,7 +125,7 @@ class XMLHttpRequest extends EventTarget(...XHR_EVENTS) { | |
status: number = 0; | |
timeout: number = 0; | |
responseURL: ?string; | |
- withCredentials: boolean = true | |
+ withCredentials: boolean = false | |
upload: XMLHttpRequestEventTarget = new XMLHttpRequestEventTarget(); | |
-- | |
2.7.4 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment