Skip to content

Commit

Permalink
Improve set-cookie scriptlet
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Jun 19, 2024
1 parent 8e3eaf1 commit b4d8750
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/resources/scriptlets.js
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,8 @@ function setCookieFn(
cookieParts.push(`; domain=${options.domain}`);
}
cookieParts.push('; Secure');
} else if ( /^__(Host|Secure)-/.test(name) ) {
cookieParts.push('; Secure');
}

try {
Expand Down

0 comments on commit b4d8750

Please sign in to comment.