From ef7038fe343de4bb04801bfd44aed5dc41f768a0 Mon Sep 17 00:00:00 2001 From: Mukul Mishra Date: Thu, 14 Sep 2017 23:53:06 +0530 Subject: [PATCH] Fix #8888: Change behaviour of fetch to make it compatible with XHR. --- src/display/fetch_stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/fetch_stream.js b/src/display/fetch_stream.js index 12cd4008b..59955a312 100644 --- a/src/display/fetch_stream.js +++ b/src/display/fetch_stream.js @@ -26,7 +26,7 @@ function createFetchOptions(headers, withCredentials) { method: 'GET', headers, mode: 'cors', - credentials: withCredentials ? 'include' : 'omit', + credentials: withCredentials ? 'include' : 'same-origin', redirect: 'follow', }; }