Skip to content

Conversation

@jetomit
Copy link
Contributor

@jetomit jetomit commented Sep 5, 2025

Fixes: #20222

This prevents JS code from reading the CSRF token from the cookie store. If needed, the window.CSRF_TOKEN property can be used instead (see also commit cdea302).

Actual security benefit of this change is minimal, but it is sometimes requested by auditors.

This prevents JS code from reading the CSRF token from the cookie store.
If needed, the `window.CSRF_TOKEN` property can be used instead (see
also commit cdea302).

Actual security benefit of this change is minimal, but it is sometimes
requested by auditors.
@jnovinger jnovinger requested review from a team and arthanson and removed request for a team September 5, 2025 12:03
Copy link
Collaborator

@arthanson arthanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jetomit !

@arthanson arthanson merged commit 5ca2cea into netbox-community:main Sep 5, 2025
7 checks passed
@jetomit jetomit deleted the close-20222 branch September 6, 2025 12:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable HttpOnly flag for the CSRF cookie

2 participants