From 629fe8a8e0f1ec31800a592fbbda6e355ea331d5 Mon Sep 17 00:00:00 2001 From: xivk Date: Thu, 30 May 2024 13:46:32 +0200 Subject: [PATCH] Added deployed location CSRF trusted origins. --- mount_point/app/app/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mount_point/app/app/settings.py b/mount_point/app/app/settings.py index 0ca6cdd..ea24ca7 100755 --- a/mount_point/app/app/settings.py +++ b/mount_point/app/app/settings.py @@ -118,7 +118,7 @@ LOGIN_REDIRECT_URL = '/' if 'CORSWhiteListed' in os.environ: - CORS_ORIGIN_WHITELIST = (os.environ['CORSWhiteListed'],'https://cityflows-api.anyways.eu/','http://127.0.0.1','http://172.21.0.77', 'http://172.21.0.77:3737', 'https://cfback.salnikov.be', 'https://backend.cityflows.imec-apt.be', 'https://demo-backend.cityflows.imec-apt.be') + CORS_ORIGIN_WHITELIST = (os.environ['CORSWhiteListed'],'https://cityflows-api.anyways.eu','http://127.0.0.1','http://172.21.0.77', 'http://172.21.0.77:3737', 'https://cfback.salnikov.be', 'https://backend.cityflows.imec-apt.be', 'https://demo-backend.cityflows.imec-apt.be') else: CORS_ORIGIN_WHITELIST = ('http://127.0.0.1','http://172.21.0.77', 'http://172.21.0.77:3737', 'https://cfback.salnikov.be', 'https://backend.cityflows.imec-apt.be', 'https://demo-backend.cityflows.imec-apt.be') CORS_ORIGIN_ALLOW = True @@ -127,4 +127,4 @@ DATA_UPLOAD_MAX_MEMORY_SIZE = 1024*1024*1024 DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' -CSRF_TRUSTED_ORIGINS = ['https://gent-backend.cityflows.imec-apt.be', 'https://demo-backend.cityflows.imec-apt.be', 'https://backend.cityflows.imec-apt.be', 'https://cfback.salnikov.be','https://cityflows-api.anyways.eu/'] \ No newline at end of file +CSRF_TRUSTED_ORIGINS = ['https://gent-backend.cityflows.imec-apt.be', 'https://demo-backend.cityflows.imec-apt.be', 'https://backend.cityflows.imec-apt.be', 'https://cfback.salnikov.be','https://cityflows-api.anyways.eu'] \ No newline at end of file