Fix #8888: Change behaviour of fetch to make it compatible with XHR.
This commit is contained in:
parent
31a34335a0
commit
ef7038fe34
@ -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',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user