Skip to content

Commit f3507d6

Browse files
authored
Merge pull request #24 from cmu-delphi/add-csrf-config-option
Enables passing in values via 'CSRF_TRUSTED_ORIGINS'
2 parents 1144661 + 1646b8a commit f3507d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/signal_documentation/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737

3838
CORS_ALLOWED_ORIGINS: list[str] = os.environ.get('CORS_ORIGIN_WHITELIST').split(',') if os.environ.get('CORS_ORIGIN_WHITELIST') else [] # type: ignore
3939

40+
CSRF_TRUSTED_ORIGINS: list[str] = os.environ.get('CSRF_TRUSTED_ORIGINS').split(',') if os.environ.get('CSRF_TRUSTED_ORIGINS') else [] # type: ignore
41+
4042
if DEBUG:
4143
CORS_ALLOW_ALL_ORIGINS = True
4244

0 commit comments

Comments
 (0)