Skip to content

Commit

Permalink
Merge pull request #187 from snikket-im/cookie-samesite-attribute
Browse files Browse the repository at this point in the history
Explicitly set cookie SameSite attribute to Lax
  • Loading branch information
mwild1 authored Apr 29, 2024
2 parents a8c6b1a + 6407eb9 commit 13c5d44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snikket_web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def create_app() -> quart.Quart:
app.config["ABUSE_EMAIL"] = config.abuse_email
app.config["SECURITY_EMAIL"] = config.security_email
app.config["SESSION_COOKIE_SECURE"] = True
app.config["SESSION_COOKIE_SAMESITE"] = "Lax"

app.context_processor(proc)
app.register_error_handler(
Expand Down

0 comments on commit 13c5d44

Please sign in to comment.