Skip to content

Commit

Permalink
update settings
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanaijaz committed Nov 14, 2023
1 parent bdb2a02 commit e42301d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/portal/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SAMESITE = 'Strict'
# for local testing
CSRF_TRUSTED_ORIGINS = settings_custom._CSRF_TRUSTED_ORIGINS
CSRF_TRUSTED_ORIGINS = getattr(settings_custom, '_CSRF_TRUSTED_ORIGINS', [])

SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
ALLOWED_HOSTS = ['*']
Expand Down
1 change: 1 addition & 0 deletions server/portal/settings/settings_custom.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

_RT_QUEUE = 'Web & Mobile Apps'
_RT_TAG = 'core_portal'
_CSRF_TRUSTED_ORIGINS = ['https://cep.test']

########################
# AGAVE SETTINGS
Expand Down

0 comments on commit e42301d

Please sign in to comment.