Improve set-cookie scriptlet

Related feedback:
https://github.com/uBlockOrigin/uBlock-issues/issues/3178#issuecomment-2178502856
This commit is contained in:
Raymond Hill 2024-06-19 08:48:54 -04:00
parent 8e3eaf1cc8
commit b4d8750f44
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -1009,6 +1009,8 @@ function setCookieFn(
cookieParts.push(`; domain=${options.domain}`);
}
cookieParts.push('; Secure');
} else if ( /^__(Host|Secure)-/.test(name) ) {
cookieParts.push('; Secure');
}
try {