From b4d8750f445cfa06bebd184a6f3cdb4d73148e72 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 19 Jun 2024 08:48:54 -0400 Subject: [PATCH] Improve `set-cookie` scriptlet Related feedback: https://github.com/uBlockOrigin/uBlock-issues/issues/3178#issuecomment-2178502856 --- assets/resources/scriptlets.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index dacfe7f50..2781fad3b 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -1009,6 +1009,8 @@ function setCookieFn( cookieParts.push(`; domain=${options.domain}`); } cookieParts.push('; Secure'); + } else if ( /^__(Host|Secure)-/.test(name) ) { + cookieParts.push('; Secure'); } try {