Forums

CSRF verification failed. Request aborted error on login page.

I was getting CSRF verification failed. Request aborted error on admin page so I created my own login page and things started working fine and I was able to login and do stuff. But yesterday I created another application where same login code and logic is being used. In starting it was working ok but later on it also started throwing errors. I analysed the response header and found that in response header and source code of web page, same csrf token value is set but in browser cookies different value is set.
I have posted a stackoverflow question for same issue. http://stackoverflow.com/questions/41787263/different-value-of-csrf-token-at-different-places-csrf-verification-failing-in

Hi there, I'm not sure there's anything PythonAnywhere-specific about this problem.. Maybe try the django mailing list?

Yes True. But I am running two apps (100rupeekart.com and 10dollarkart.com) within my account. Both are using exactly same code. While first one is working absolutely fine, only second one is causing this issue.