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

[FEATURE] Include csrf header in api requests #160

Closed
alexjball opened this issue Sep 27, 2021 · 0 comments
Closed

[FEATURE] Include csrf header in api requests #160

alexjball opened this issue Sep 27, 2021 · 0 comments

Comments

@alexjball
Copy link
Member

#158 adds csrf protection in production. This involves checking that requests include the X-CSRF-TOKEN header using the value of the csrf_access_token cookie. So we need to update the frontend (frontend/helpers/api) to copy the cookie into the header.

https://flask-jwt-extended.readthedocs.io/en/stable/token_locations/#cookies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants