Fix #8888: Change behaviour of fetch to make it compatible with XHR.

This commit is contained in:
Mukul Mishra 2017-09-14 23:53:06 +05:30
parent 31a34335a0
commit ef7038fe34

View File

@ -26,7 +26,7 @@ function createFetchOptions(headers, withCredentials) {
method: 'GET',
headers,
mode: 'cors',
credentials: withCredentials ? 'include' : 'omit',
credentials: withCredentials ? 'include' : 'same-origin',
redirect: 'follow',
};
}