mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Update regex patterns in plugin.json for improved validation
This commit is contained in:
parent
8de3c5a2a0
commit
d90b980cc6
1 changed files with 3 additions and 3 deletions
|
|
@ -39,7 +39,7 @@
|
|||
"help": "Value for the Strict-Transport-Security header.",
|
||||
"id": "strict-transport-security",
|
||||
"label": "Strict-Transport-Security",
|
||||
"regex": "^max-age=\\d+(; includeSubDomains(; preload)?)?$",
|
||||
"regex": "^(max-age=\\d+(; includeSubDomains(; preload)?)?)?$",
|
||||
"type": "text"
|
||||
},
|
||||
"COOKIE_FLAGS": {
|
||||
|
|
@ -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"
|
||||
},
|
||||
|
|
@ -123,7 +123,7 @@
|
|||
"help": "Value for the X-XSS-Protection header.",
|
||||
"id": "x-xss-protection",
|
||||
"label": "X-XSS-Protection",
|
||||
"regex": "^0|1(; (mode=block|report=https?:\\/\\/[\\-\\w@:%.+~#=]+[\\-\\w\\(\\)!@:%+.~#?&\\/=$]*))?$",
|
||||
"regex": "^(0|1(; (mode=block|report=https?:\\/\\/[\\-\\w@:%.+~#=]+[\\-\\w\\(\\)!@:%+.~#?&\\/=$]*))?)?$",
|
||||
"type": "text"
|
||||
},
|
||||
"X_DNS_PREFETCH_CONTROL": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue