Skip to content

Commit

Permalink
Make the session cookie only available over HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Dec 29, 2024
1 parent 664306c commit 01d2043
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/comics/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
#
# Time the user session cookies will be valid. Default: 1 year
SESSION_COOKIE_AGE = 60 * 60 * 24 * 365
#
# Do not allow the session cookie to be sent over HTTP if the site is served over HTTPS.
SESSION_COOKIE_SECURE = CSRF_COOKIE_SECURE


# Application definition
Expand Down

0 comments on commit 01d2043

Please sign in to comment.