Hello Everyone,
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 but unforthunately didn't fix the problem, any hints ?
#Deployment Using Nginx and Docker
1 messages · Page 1 of 1 (latest)
I don't suppose your project is on github? I'd take a look if so
did you disable the "session" middleware?
disabling the session middleware , why ?
the app is dockerized, so i needed to restart the container each time when i edit something
it was just that , in order to apply the changes
!!!
but still i wanna know about disabling the middleware ?
admin panel uses session for auth, so it happens if you use primarily JWT you might forget and disable the session.