#Deployment Using Nginx and Docker

1 messages · Page 1 of 1 (latest)

grizzled crypt
#

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 ?

coarse bramble
#

I don't suppose your project is on github? I'd take a look if so

wheat sparrow
#

did you disable the "session" middleware?

grizzled crypt
#

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 ?

wheat sparrow