I’m deploying my backend using Nginx and Docker (containerized DRF app), but I’m encountering an issue when trying to access the admin panel. I get the following error:
403 Forbidden – CSRF verification failed. Request aborted.
To fix this, I reviewed my configuration and added some parameters to my settings.py file, ensuring that CSRF_TRUSTED_ORIGINS is pointing to the correct domain. Unfortunately, this didn't fix the problem.
urls.pyfile