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.
2 parents 629c8a4 + f254065 commit ccb9fbbCopy full SHA for ccb9fbb
src/templates/core/axios/sendRequest.hbs
@@ -17,7 +17,7 @@ const sendRequest = async <T>(
17
method: options.method,
18
cancelToken: source.token,
19
validateStatus: () => true,
20
- withCredentials: options.cookies ?? true
+ withCredentials: (options.cookies && Object.keys(options.cookies).length > 0) ? true : undefined
21
};
22
23
onCancel(() => source.cancel('The user aborted a request.'));
0 commit comments