headers v0.21.2
Patch Changes
-
Fix
SetCookieaccepting invalidSameSitevaluesThe
SameSitecheck used/strict|lax|none/ias a substring test, so any value containing one of those words (e.g.SameSite=nonesense,SameSite=strictly) was accepted, capitalized, and re-serialized — violating the declared'Strict' | 'Lax' | 'None'type. The regex is now anchored, and invalid values fall through toundefinedlike other malformed attributes.