diff --git a/Libraries/vendor/core/whatwg-fetch.js b/Libraries/vendor/core/whatwg-fetch.js index 3f1767afda81..5cf085560205 100644 --- a/Libraries/vendor/core/whatwg-fetch.js +++ b/Libraries/vendor/core/whatwg-fetch.js @@ -384,7 +384,7 @@ this.url = String(input); } - this.credentials = options.credentials || this.credentials || 'omit'; + this.credentials = options.credentials || this.credentials || 'same-origin'; if (options.headers || !this.headers) { this.headers = new Headers(options.headers); } @@ -510,10 +510,10 @@ xhr.open(request.method, request.url, true); - if (request.credentials === 'include') { - xhr.withCredentials = true; - } else if (request.credentials === 'omit') { + if (request.credentials === 'omit') { xhr.withCredentials = false; + } else { + xhr.withCredentials = true; } if ('responseType' in xhr && support.blob) {