Skip to content

Commit

Permalink
midna: add django recommended security settings
Browse files Browse the repository at this point in the history
  • Loading branch information
darakeon committed Jul 19, 2023
1 parent b10c780 commit 76ab495
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This is the list of project releases, past and current. To see tasks that are st

## <a name="10.0.1.0"></a>10.0.1.0 :sheep: <sup>`11`</sup>
- [ ] Fix menu not opening
- [ ] `230619>......` Add admin to nginx with production settings ([django-prod]/[django-nginx])
- [x] `230619>230719` Add admin to nginx with production settings ([django-prod]/[django-nginx])
- [x] `230619>230619` Fix emails to remove email contact and tell how to recover and delete csv
- [x] `230618>230619` Fix terms to remove email contact and tell how to recover and delete csv
- [x] `230530>230617` Add link to purge csv into email with csv
Expand Down
3 changes: 3 additions & 0 deletions midna/src/midna/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
SECURE_REFERRER_POLICY = "strict-origin-when-cross-origin"

SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True

LOGGING = {
'version': 1,
'disable_existing_loggers': False,
Expand Down

0 comments on commit 76ab495

Please sign in to comment.