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

add CSRF_COOKIE_SECURE setting in production #145

Merged
merged 1 commit into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Repo now has a `CODEOWNERS` file to automatically assign reviewers to pull requests. (Template already has one.)
- Added a new, separate Dependabot group for `django-email-relay` updates.
- Added Docker to Dependabot updates.
- Added `CSRF_COOKIE_SECURE = not DEBUG` to the Django settings template.

## [2024.19]

Expand Down
2 changes: 2 additions & 0 deletions src/django_twc_project/{{ module_name }}/settings.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"] if DEBUG else ["localhos

ASGI_APPLICATION = "{{ module_name }}.asgi.application"

CSRF_COOKIE_SECURE = not DEBUG

DATABASES = {
"default": env.dj_db_url(
"DATABASE_URL",
Expand Down