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

Joining alternative in admin does not work when CSRF_COOKIE_HTTPONLY=True #169

Open
bvvstab opened this issue Nov 20, 2017 · 0 comments
Open

Comments

@bvvstab
Copy link

bvvstab commented Nov 20, 2017

The code in csrf.js sets a HTTP header from the CSRF cookie, but it is not allowed to ready it. The HTTP header is thus set to "null", causing the request to fail.

I suggest turning the functionality into proper links, or reading the token from DOM - e.g.

$("[name='csrfmiddlewaretoken']").val();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant