I have an app platform app running Django.
When I try to log into the django admin panel I get the following error:
# Forbidden (403)
CSRF verification failed. Request aborted.
Reason given for failure:
Origin checking failed - https://xxxxxxxxxxxx.ondigitalocean.app does not match any trusted origins.
I have run a few different app platform apps before using the DO Django tutorial (https://docs.digitalocean.com/tutorials/app-deploy-django-app/) and have not encountered this. The only things I’ve changed this time are:
I don’t really know where to start with tracking this down, is it a problem with my settings.py config? Is it a problem with the DB?
Any advice is appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.