Merge pull request #8848 from Snuffleupagus/fetch-credentials
Correctly set the `credentials` of a fetch request, when the `withCredentials` parameter was passed to `getDocument`
This commit is contained in:
commit
0430e99d16
@ -26,7 +26,7 @@ function createFetchOptions(headers, withCredentials) {
|
||||
method: 'GET',
|
||||
headers,
|
||||
mode: 'cors',
|
||||
credentials: withCredentials ? 'omit' : 'include',
|
||||
credentials: withCredentials ? 'include' : 'omit',
|
||||
redirect: 'follow',
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user