Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(main): add support for updating CSRF token from header #11

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

Avol-V
Copy link
Contributor

@Avol-V Avol-V commented Mar 25, 2024

Support for X-CSRF-Token header is already exists in Axios-Wrapper here:
https://github.com/gravity-ui/axios-wrapper/blob/main/src/index.ts#L58

In this PR we add checking for CSRF token header in response and applying it to Axios-Wrapper settings when we receive a CSRF token error from the server.

@Avol-V Avol-V merged commit b1cca85 into main Mar 27, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants