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

AJAX POST does not include CSRF Token in XHR Headers (Django 1.4) #7

Open
exallium opened this issue Feb 12, 2013 · 3 comments
Open

Comments

@exallium
Copy link

Upgrading to latest FeinCMS solved the issue for me, however, it turns out this is currently broken in this repository.

Running:
Django 1.4 on Mac OSX 10.7 with django-mptt==0.5.5, latest django-treeadmin, latest grappelli

Reproducing:
Set up TreeAdmin as base of Model's admin class and load up the list page for your model. Moving an object causes a 403 on the POST method. Looks like the XHR expects a relative path, where as I am handing it an absolute path that is still pointing to my local machine. Check toolbox.js in the ajaxSetup function, I think that's where it bugs out.

@evildmp
Copy link
Contributor

evildmp commented Mar 18, 2013

Yes, I think so too, but so far I haven't been able to figure out a fix either.

@evildmp
Copy link
Contributor

evildmp commented Mar 18, 2013

In fact [email protected]:clincher/django-treeadmin.git fixes it - #8.

@lanshark
Copy link

lanshark commented May 2, 2016

note: this is also fixed in my branch: ls-django-treeadmin.

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

3 participants