Expose CSRF_COOKIE_NAME in configuration.py #6435

Closed
opened 2025-12-29 19:40:41 +01:00 by adam · 3 comments
Owner

Originally created by @tyler-8 on GitHub (May 2, 2022).

Originally assigned to: @tyler-8 on GitHub.

NetBox version

v3.2.2

Feature type

New functionality

Proposed functionality

Similar to https://github.com/netbox-community/netbox/issues/6197, allow admins to set an optional CSRF_COOKIE_NAME settings in their configuration.py.

Use case

The default csrftoken is generic and could overlap with other applications/services running in the same domain as NetBox. Allowing admins to change this would help prevent conflicts in environments that need a unique name.

Database changes

None

External dependencies

None

Originally created by @tyler-8 on GitHub (May 2, 2022). Originally assigned to: @tyler-8 on GitHub. ### NetBox version v3.2.2 ### Feature type New functionality ### Proposed functionality Similar to https://github.com/netbox-community/netbox/issues/6197, allow admins to set an optional `CSRF_COOKIE_NAME` settings in their `configuration.py`. ### Use case The default `csrftoken` is generic and could overlap with other applications/services running in the same domain as NetBox. Allowing admins to change this would help prevent conflicts in environments that need a unique name. ### Database changes None ### External dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 19:40:41 +01:00
adam closed this issue 2025-12-29 19:40:41 +01:00
Author
Owner

@tyler-8 commented on GitHub (May 3, 2022):

@jeremystretch I'll take this

@tyler-8 commented on GitHub (May 3, 2022): @jeremystretch I'll take this
Author
Owner

@jeremystretch commented on GitHub (May 24, 2022):

@tyler-8 are you still working on this?

@jeremystretch commented on GitHub (May 24, 2022): @tyler-8 are you still working on this?
Author
Owner

@tyler-8 commented on GitHub (May 24, 2022):

@tyler-8 are you still working on this?

PR submitted, I changed laptops since opening the issue and still catching up :D

@tyler-8 commented on GitHub (May 24, 2022): > @tyler-8 are you still working on this? PR submitted, I changed laptops since opening the issue and still catching up :D
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6435