mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Fix #8888: Change behaviour of fetch to make it compatible with XHR.
This commit is contained in:
parent
31a34335a0
commit
ef7038fe34
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue