Skip to content

Commit

Permalink
Merge pull request #8910 from mukulmishra18/include-credentials
Browse files Browse the repository at this point in the history
Fix #8888: Change behaviour of fetch to make it compatible with XHR.
  • Loading branch information
yurydelendik authored Sep 14, 2017
2 parents 31a3433 + ef7038f commit d0d7046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display/fetch_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function createFetchOptions(headers, withCredentials) {
method: 'GET',
headers,
mode: 'cors',
credentials: withCredentials ? 'include' : 'omit',
credentials: withCredentials ? 'include' : 'same-origin',
redirect: 'follow',
};
}
Expand Down

0 comments on commit d0d7046

Please sign in to comment.