The set-cookie scriptlets currently allow only predefined constants or numeric values.
Some websites use declined as the consent cookie value, which cannot currently be set.
Example: https://www.tempemail.cc. I discovered it while working on AdguardTeam/AdguardFilters#226132.
After clicking "Decline", the site sets:
Attempting to reproduce this rule does not work:
www.tempemail.cc#%#//scriptlet('set-cookie', 'gdpr-consent', 'declined')
However, denied works because it is in the allowed constant list:
www.tempemail.cc#%#//scriptlet('set-cookie', 'gdpr-consent', 'denied')
Proposal:
Add declined to the predefined constants accepted by:
- set-cookie
- set-cookie-reload