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

How is CSRF handled in flask-restless? #421

Open
italomaia opened this issue Mar 20, 2015 · 1 comment
Open

How is CSRF handled in flask-restless? #421

italomaia opened this issue Mar 20, 2015 · 1 comment
Labels

Comments

@italomaia
Copy link

Does it have CSRF? How is it handled?

@jfinkels
Copy link
Owner

Flask-Restless does not do anything specific to handle CSRF tokens. But I'm not sure that it should. I think it may be beyond the scope of Flask-Restless, i.e. the user should handle adding a CSRFToken header by using, say, preprocessors and postprocessors. This is because Flask-Restless is "session-agnostic": it doesn't require any knowledge about the user's session management.

However, I would be willing to consider a pull request adding CSRFToken headers if it is simple for the user and applicable in most situations.

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