Skip to content

Commit 1646b8a

Browse files
committed
Enable env var of 'CSRF_TRUSTED_ORIGINS'
1 parent 1144661 commit 1646b8a

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)