M
M
manjustice2022-02-16 17:30:29
Django
manjustice, 2022-02-16 17:30:29

CSRF validation failed. Request denied. What to do?

I decided to test my application on Heroku and deployed it there, the application started up normally, but when I want to log in to my test site, I can’t, because it doesn’t pass the token check. If I run it on a local computer, everything works fine. 'django.middleware.csrf.CsrfViewMiddleware' is enabled in settings What's the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question