mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ function createFetchOptions(headers, withCredentials) {
|
|||
method: 'GET',
|
||||
headers,
|
||||
mode: 'cors',
|
||||
credentials: withCredentials ? 'omit' : 'include',
|
||||
credentials: withCredentials ? 'include' : 'omit',
|
||||
redirect: 'follow',
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue