Add essential and nonessential to set-cookie (#3919)

This commit is contained in:
Fanboynz 2024-07-08 01:25:34 +12:00 committed by GitHub
parent 966a233219
commit 37d31a82d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3791,6 +3791,7 @@ function setCookie(
'necessary', 'required',
'approved', 'disapproved',
'hide', 'hidden',
'essential', 'nonessential',
];
const normalized = value.toLowerCase();
const match = /^("?)(.+)\1$/.exec(normalized);