Skip to content

Commit

Permalink
WebServerSession "samesite=none ; secure" together
Browse files Browse the repository at this point in the history
  • Loading branch information
manatlan committed Oct 14, 2024
1 parent 30317a6 commit 3b76865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htagweb/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
else:
uid = str(uuid.uuid4())

security_flags = "httponly; samesite=none"
security_flags = "httponly"
if connection.headers.get("X-Forwarded-Proto") == "https": # Secure flag can be used with HTTPS only
security_flags += "; secure"
security_flags += "; samesite=none ; secure"

#!!!!!!!!!!!!!!!!!!!!!!!!!!!
scope["uid"] = uid
Expand Down

0 comments on commit 3b76865

Please sign in to comment.