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_exempt #9

Open
lsemel opened this issue Jul 5, 2011 · 2 comments
Open

@csrf_exempt #9

lsemel opened this issue Jul 5, 2011 · 2 comments

Comments

@lsemel
Copy link
Contributor

lsemel commented Jul 5, 2011

I'm trying to test my Ajax methods by issuing requests from my browser as I write them, and notice using the decorator @csrf_except around my endpoint function doesn't work, because the function in endpoints.py isn't the real view function, so the decorator has no effect. Any idea how to get around this?

@joestump
Copy link
Owner

joestump commented Jul 5, 2011

I was planning on building Django's CSRF tokens into the entire system so that we can use those tokens automatically within the framework. I haven't gotten around to it yet though.

@joestump
Copy link
Owner

joestump commented Jul 5, 2011

You can, however, check for the CSRF stuff by overriding ModelEndpoint.authenticate() and checking the request that's passed to that for CSRF stuff.

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

2 participants