Merge pull request #8910 from mukulmishra18/include-credentials

Fix #8888: Change behaviour of fetch to make it compatible with XHR.
This commit is contained in:
Yury Delendik 2017-09-14 14:29:59 -05:00 committed by GitHub
commit d0d7046129

View File

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