Hi developers!
I am facing an error with my admin panel. I deployed my site on railway and whenever I try to login to admin with right credentials ,(even with wrong credentials) it throws the error:
Forbidden (403)
CSRF verification failed. Request aborted.
More information is available with DEBUG=True.
I have configured everything in settings file about CSRF TRUSTED ORIGINS and ALLOWED HOST and have added their my domain but the error still persists. What can I do to solve this? Please guide!
There are multiple reasons why this summary message may be generated. Getting the rest of the information helps identify what exactly needs to be done to resolve the issue.
Please post the complete error message being received.
If that is the full error showing up in the browser, check the server logs for a more complete error message.
If there’s nothing in the server logs, check the application logs as identified by the LOGGING
settings.
If you have no additional useful logs, then you will want to (temporarily) deploy with DEBUG=True
to get this information.