Added CSRF Origin in settings (#14062)

This commit is contained in:
John Westcott IV
2023-07-05 15:18:23 -04:00
committed by GitHub
parent 4a34ee1f1e
commit 5e9d514e5e
9 changed files with 56 additions and 1 deletions

View File

@@ -94,6 +94,20 @@ register(
category_slug='system',
)
register(
'CSRF_TRUSTED_ORIGINS',
default=[],
field_class=fields.StringListField,
label=_('CSRF Trusted Origins List'),
help_text=_(
"If the service is behind a reverse proxy/load balancer, use this setting "
"to configure the schema://addresses from which the service should trust "
"Origin header values. "
),
category=_('System'),
category_slug='system',
)
register(
'LICENSE',
field_class=fields.DictField,