Browse Source

Merge pull request #8848 from Snuffleupagus/fetch-credentials

Correctly set the `credentials` of a fetch request, when the `withCredentials` parameter was passed to `getDocument`
Rob Wu 8 years ago committed by GitHub
parent
commit
0430e99d16
  1. 2
      src/display/fetch_stream.js

2
src/display/fetch_stream.js

@ -26,7 +26,7 @@ function createFetchOptions(headers, withCredentials) { @@ -26,7 +26,7 @@ function createFetchOptions(headers, withCredentials) {
method: 'GET',
headers,
mode: 'cors',
credentials: withCredentials ? 'omit' : 'include',
credentials: withCredentials ? 'include' : 'omit',
redirect: 'follow',
};
}

Loading…
Cancel
Save