Skip to content

Commit

Permalink
Add 'deny' as valid value for set-cookie (#3897)
Browse files Browse the repository at this point in the history
AG added it as well.

AdguardTeam/Scriptlets@6f36f88
  • Loading branch information
peace2000 committed Jul 22, 2023
1 parent 0eccb6b commit da8fe2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/resources/scriptlets.js
Expand Up @@ -2901,7 +2901,7 @@ function setCookie(
'yes', 'y', 'no', 'n',
'ok',
'accept', 'reject',
'allow',
'allow', 'deny',
];
if ( validValues.includes(value.toLowerCase()) === false ) {
if ( /^\d+$/.test(value) === false ) { return; }
Expand Down

0 comments on commit da8fe2f

Please sign in to comment.