Skip to content

Commit aa5e95c

Browse files
authored
Merge pull request #2067 from ferdikoomen/2063-update-sendrequest-for-axios-to-align-on-parameter-deprecation-withcredentials
fix: updated axios sendRequest (#2063)
2 parents 5cc61db + b7f1a91 commit aa5e95c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/templates/core/axios/sendRequest.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const sendRequest = async <T>(
1616
data: body ?? formData,
1717
method: options.method,
1818
withCredentials: config.WITH_CREDENTIALS,
19+
withXSRFToken: config.CREDENTIALS === 'include' ? config.WITH_CREDENTIALS : false,
1920
cancelToken: source.token,
2021
};
2122

0 commit comments

Comments
 (0)