Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

Not standart csrf cookie name #19

Open
karech opened this issue Mar 11, 2015 · 0 comments
Open

Not standart csrf cookie name #19

karech opened this issue Mar 11, 2015 · 0 comments

Comments

@karech
Copy link

karech commented Mar 11, 2015

If you change CSRF_COOKIE_NAME in project settings, then nexus admin ajax requests will fail with 403 error. Problem in nexus/media/lib/nexus.js:38

...
if (!safeMethod(settings.type) && sameOrigin(settings.url)) {
    xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
}
...

Fix: Pull request

adamchainz pushed a commit to adamchainz/nexus that referenced this issue Dec 31, 2015
Fixes disqus#19 with an updated version of disqus#18 with review changes. Thanks @karech and @graingert.
delinhabit pushed a commit to roverdotcom/disqus-nexus that referenced this issue Mar 17, 2016
Fixes disqus#19 with an updated version of disqus#18 with review changes. Thanks @karech and @graingert.

Conflicts:
	HISTORY.rst
	nexus/templatetags/nexus_helpers.py
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant