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

Improvements around http headers & settings #3545

Merged
merged 4 commits into from
Feb 21, 2024

Conversation

atodorov
Copy link
Member

No description provided.

Add CSRF_COOKIE_AGE, CSRF_COOKIE_HTTPONLY, SESSION_COOKIE_HTTPONLY,
CSRF_COOKIE_SECURE and SESSION_COOKIE_SECURE to the settings file so
that they get automatically documented.

There should be no reason for any of these settings to be customized.
Allows configuration via the ``SECURE_CONTENT_TYPE_NOSNIFF`` setting.
Defaults to ``nosniff``, see
https://docs.djangoproject.com/en/4.2/ref/settings/#secure-content-type-nosniff
@atodorov atodorov force-pushed the improvements_around_http_headers branch from aef86d4 to f43738d Compare February 21, 2024 19:19
@atodorov atodorov merged commit d6a0bbd into master Feb 21, 2024
39 of 46 checks passed
@atodorov atodorov deleted the improvements_around_http_headers branch February 21, 2024 20:40
atodorov added a commit to kiwitcms/enterprise that referenced this pull request Feb 22, 2024
atodorov added a commit to kiwitcms/enterprise that referenced this pull request Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant