Skip to content

headers v0.21.2

Choose a tag to compare

@github-actions github-actions released this 18 Sep 22:38
bfdf7ab

Patch Changes

  • Fix SetCookie accepting invalid SameSite values

    The SameSite check used /strict|lax|none/i as 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 to undefined like other malformed attributes.