Skip to content

Commit b4d8750

Browse files
committed
Improve set-cookie scriptlet
Related feedback: uBlockOrigin/uBlock-issues#3178 (comment)
1 parent 8e3eaf1 commit b4d8750

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

assets/resources/scriptlets.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,8 @@ function setCookieFn(
10091009
cookieParts.push(`; domain=${options.domain}`);
10101010
}
10111011
cookieParts.push('; Secure');
1012+
} else if ( /^__(Host|Secure)-/.test(name) ) {
1013+
cookieParts.push('; Secure');
10121014
}
10131015

10141016
try {

0 commit comments

Comments
 (0)