Skip to content

Commit

Permalink
Set HttpOnly flag on cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed Sep 17, 2021
1 parent 0e6a5cb commit c8d4894
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions babybuddy/settings/base.py
Expand Up @@ -240,9 +240,11 @@
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

# https://docs.djangoproject.com/en/3.2/topics/http/sessions/#settings
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_SECURE = True

# https://docs.djangoproject.com/en/3.2/ref/csrf/#settings
CSRF_COOKIE_HTTPONLY = True
CSRF_COOKIE_SECURE = True

# https://docs.djangoproject.com/en/3.2/topics/auth/passwords/
Expand Down

0 comments on commit c8d4894

Please sign in to comment.