From 03e7eaeb10b0994abd79f0e6a4ac7665598b038c Mon Sep 17 00:00:00 2001 From: manatlan Date: Sun, 13 Oct 2024 18:03:23 +0200 Subject: [PATCH] try to fix --- htagweb/runners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htagweb/runners.py b/htagweb/runners.py index 27151a1..ea6c2cb 100644 --- a/htagweb/runners.py +++ b/htagweb/runners.py @@ -70,7 +70,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None: uid = str(uuid.uuid4()) security_flags = "httponly; samesite=none" - if connection.url.scheme == "https": # Secure flag can be used with HTTPS only + if connection.url.scheme in ["https","wss"]: # Secure flag can be used with HTTPS only security_flags += "; secure" #!!!!!!!!!!!!!!!!!!!!!!!!!!!