Skip to content

Commit

Permalink
make session cookie secure, so it's only sent over https. (#1982)
Browse files Browse the repository at this point in the history
  • Loading branch information
benadida authored Oct 6, 2024
1 parent 5c4bb29 commit eab7322
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
app,
force_https_permanent=True,
session_cookie_http_only=True,
session_cookie_secure=True,
feature_policy="camera 'none'; microphone 'none'; geolocation 'none'",
# TODO: Configure webpack to use a nonce: https://webpack.js.org/guides/csp/.
content_security_policy={
Expand Down

0 comments on commit eab7322

Please sign in to comment.