Expose CSRF_TRUSTED_ORIGINS as a configuration parameter #8509
Labels
status: accepted
This issue has been accepted for implementation
type: feature
Introduction of new functionality to the application
NetBox version
v3.1.6
Feature type
New functionality
Proposed functionality
Expose Django's
CSRF_TRUSTED_ORIGINS
setting as a parameter that can be defined inconfiguration.py
.Use case
Currently, this setting is populated with the same hostnames defined in
ALLOWED_HOSTS
. However, Django 4.0 requires that each entry inCSRF_TRUSTED_ORIGINS
now specify a scheme (e.g.http://
orhttps://
) as well. To accommodate this change while also providing a greater degree of flexibility to the user, we can exposeCSRF_TRUSTED_ORIGINS
directly.Database changes
No response
External dependencies
No response
The text was updated successfully, but these errors were encountered: