Skip to content

[FEAT] Support for CSRF_TRUSTED_ORIGINS #59

Open
@0xUnicorn

Description

@0xUnicorn

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Django 4.0 requires to specify the URL Scheme in this setting. An example environment variable could be specified like:
CSRF_TRUSTED_ORIGINS=https://demo.netbox.dev http://demo.netbox.dev

Reason for change

It allows for a reverse proxy like nginx to handle TLS connections and forwarding them to netbox using non-TLS.

It got added to the original netbox-docker community repo back in 2022: netbox-community/netbox-docker#773

Proposed code change

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Issues

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions