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',
|
method: 'GET',
|
||||||
headers,
|
headers,
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
credentials: withCredentials ? 'omit' : 'include',
|
credentials: withCredentials ? 'include' : 'omit',
|
||||||
redirect: 'follow',
|
redirect: 'follow',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user