diff --git a/src/common/core/headers/plugin.json b/src/common/core/headers/plugin.json index 98f2306db..b6b1343b0 100644 --- a/src/common/core/headers/plugin.json +++ b/src/common/core/headers/plugin.json @@ -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": "^(\\*|[^\\s;]+)?(\\s*(([Ee]xpires)(?!.*\\4)=[^\\s;]+|([Dd]omain)(?!.*\\5)=[^\\s;]+|([Pp]ath)(?!.*\\6)=[^\\s;]+|[Hh]ttp[Oo]nly|[Ss]ame[Ss]ite(=([Ll]ax|[Ss]trict|[NN]one))?|[Ss]ecure)(?!.*\\3))*$", "type": "text", "multiple": "cookie-flags" },