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

CSRF #16

Open
akx opened this issue May 24, 2017 · 1 comment
Open

CSRF #16

akx opened this issue May 24, 2017 · 1 comment

Comments

@akx
Copy link
Owner

akx commented May 24, 2017

Wondering what might be a good way to deal with CSRF/XSRF.

Prior art, i.e. what DRF does, is to only use Django's CSRF protection when authenticating with methods other than session authentication.

Right now Lepo doesn't even deal with authentication.

@akx
Copy link
Owner Author

akx commented Jul 23, 2017

Perhaps Lepo should check whether the csrf_exempt attribute is present on the handler and decorate the view accordingly.

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

No branches or pull requests

1 participant