From 93881727d686f31310e25223604c710dbcf59941 Mon Sep 17 00:00:00 2001 From: shayanaijaz Date: Mon, 6 Nov 2023 11:50:16 -0600 Subject: [PATCH] Added nginx conf --- server/conf/nginx/nginx.conf | 1 + server/portal/settings/settings.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/server/conf/nginx/nginx.conf b/server/conf/nginx/nginx.conf index 2ca304cb1..65d70bfaa 100644 --- a/server/conf/nginx/nginx.conf +++ b/server/conf/nginx/nginx.conf @@ -85,6 +85,7 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_redirect off; + proxy_set_header X-Forwarded-Proto https; # ** NOTE: Uncomment these lines below to configure a uwsgi server instead of http server, # ** matching deployed configurations. You must also edit docker-compose-dev.all.debug.yml. diff --git a/server/portal/settings/settings.py b/server/portal/settings/settings.py index f0c63f2b0..1c0b204a2 100644 --- a/server/portal/settings/settings.py +++ b/server/portal/settings/settings.py @@ -45,7 +45,6 @@ SESSION_COOKIE_SECURE = True CSRF_COOKIE_SAMESITE = 'Strict' -CSRF_TRUSTED_ORIGINS = ['https://cep.test'] SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') ALLOWED_HOSTS = ['*']