File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def _read_secret(secret_name, default = None):
123
123
# Cross-Site-Request-Forgery-Attack settings. If Netbox is sitting behind a reverse proxy, you might need to set the CSRF_TRUSTED_ORIGINS flag.
124
124
# Django 4.0 requires to specify the URL Scheme in this setting. An example environment variable could be specified like:
125
125
# CSRF_TRUSTED_ORIGINS=https://demo.netbox.dev http://demo.netbox.dev
126
- CSRF_TRUSTED_ORIGINS = list (filter (None , environ .get ('CSRF_TRUSTED_ORIGINS' , 'https://localhost ' ).split (' ' )))
126
+ CSRF_TRUSTED_ORIGINS = list (filter (None , environ .get ('CSRF_TRUSTED_ORIGINS' , '' ).split (' ' )))
127
127
128
128
# Set to True to enable server debugging. WARNING: Debugging introduces a substantial performance penalty and may reveal
129
129
# sensitive information about your installation. Only enable debugging while performing testing. Never enable debugging
You can’t perform that action at this time.
0 commit comments