We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92cd8ed commit 85d4d0eCopy full SHA for 85d4d0e
lib/adapters/fetch.js
@@ -155,7 +155,7 @@ export default isFetchSupported && (async (config) => {
155
}
156
157
if (!utils.isString(withCredentials)) {
158
- withCredentials = withCredentials ? 'cors' : 'omit';
+ withCredentials = withCredentials ? 'include' : 'omit';
159
160
161
request = new Request(url, {
@@ -165,7 +165,7 @@ export default isFetchSupported && (async (config) => {
165
headers: headers.normalize().toJSON(),
166
body: data,
167
duplex: "half",
168
- withCredentials
+ credentials: withCredentials
169
});
170
171
let response = await fetch(request);
0 commit comments