I have a site where users can log in from a perl front end and then are redirected to a django site. The site is on the same domain, maybe a different subdomain but the same domain nevertheless. Unfortunately, we’re getting hit w/ “CSRF token missing or incorrect.” errors. How can I fix this?
Thanks
Are you passing the CSRF token back to django?
Check out the CSRF docs
http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#exceptions
There is lots of good info there.
For example, note about subdomains:
You could also disable CSRF protection for whatever view is throwing that error (in link above) via the
@csrf_exemptdecorator.