Wednesday, July 20, 2016

Django admin raises CSRF verification failed when changing from DEBUG True - > False

Hi All,

I am having a difficulty with my Django site. In which I was running smoothly in dubug mode(DEBUG = True). While changing it to DEBUG = False (Also set ALLOWED_HOSTS = ['*']) , it raises error when logging in to admin 
"

Forbidden (403)

CSRF verification failed. Request aborted.

More information is available with DEBUG=True."

I haven't set any value in CSRF_COOKIE_DOMAIN and CSRF_COOKIE_SECURE

I couldn't find any information on log. What is the reason behind this.?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bd18c74f-ff67-4574-9ff1-d3e977577e03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment