Skip to content

Commit b7f1a91

Browse files
author
Yevhen Kifiak
committed
fix: updated axios sendRequest
backwards compatibility for axios vulnerable parameter
1 parent 9e475d9 commit b7f1a91

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)