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:
commit
d0d7046129
@ -26,7 +26,7 @@ function createFetchOptions(headers, withCredentials) {
|
||||
method: 'GET',
|
||||
headers,
|
||||
mode: 'cors',
|
||||
credentials: withCredentials ? 'include' : 'omit',
|
||||
credentials: withCredentials ? 'include' : 'same-origin',
|
||||
redirect: 'follow',
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user