Skip to content

Commit

Permalink
Added deployed location CSRF trusted origins.
Browse files Browse the repository at this point in the history
  • Loading branch information
xivk committed May 30, 2024
1 parent 50efd06 commit 629fe8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mount_point/app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/']
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']

0 comments on commit 629fe8a

Please sign in to comment.