fix: update regex for cookie flags to allow empty values

This commit is contained in:
Théophile Diot 2024-11-18 16:05:59 +01:00
parent ee635c36a6
commit e648db58c5
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -48,7 +48,7 @@
"help": "Cookie flags automatically added to all cookies (value accepted for nginx_cookie_flag_module).",
"id": "cookie-flags",
"label": "Cookie flags",
"regex": "^(\\*|[^;]+)( (HttpOnly|(SameSite)(?!.*\\4)(=(Lax|Strict))?)(?!.*\\3))*$",
"regex": "^(\\*|[^;]+)?( (HttpOnly|(SameSite)(?!.*\\4)(=(Lax|Strict))?)(?!.*\\3))*$",
"type": "text",
"multiple": "cookie-flags"
},