Skip to content

Commit 9933374

Browse files
committed
Add CSRF_TRUSTED_ORIGINS to setting
This is needed for effective CSRF proptection on deployments Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 070f433 commit 9933374

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vulnerablecode/settings.py

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

3737
VULNERABLECODE_PASSWORD_MIN_LENGTH = env.int("VULNERABLECODE_PASSWORD_MIN_LENGTH", default=14)
3838

39+
CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", default=[])
40+
3941
# SECURITY WARNING: do not run with debug turned on in production
4042
DEBUG = env.bool("VULNERABLECODE_DEBUG", default=False)
4143

0 commit comments

Comments
 (0)