Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Support for CSRF_TRUSTED_ORIGINS #59

Open
1 task done
0xUnicorn opened this issue Jul 1, 2024 · 3 comments
Open
1 task done

[FEAT] Support for CSRF_TRUSTED_ORIGINS #59

0xUnicorn opened this issue Jul 1, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request work-in-progress Stale exempt

Comments

@0xUnicorn
Copy link

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

@0xUnicorn 0xUnicorn added the enhancement New feature or request label Jul 1, 2024
Copy link

github-actions bot commented Jul 1, 2024

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@thespad thespad self-assigned this Jul 1, 2024
@thespad
Copy link
Member

thespad commented Jul 1, 2024

Implementing this is going to require a rework of how we handle environment variables in the container, which I've been meaning to do for a while. Will need a bunch of testing to make sure we don't break any existing installs so might take a little while to get into into a usable state.

@LinuxServer-CI
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request work-in-progress Stale exempt
Projects
Status: Issues
Development

No branches or pull requests

3 participants