Optional
allowedOptional
allowedRegular expression(s) used to match the target URL.
The base URl without trailing slash will be stripped of before applying the regular expressions,
so the input will always start with a /
.
Default is [ '.*' ]
.
Optional
baseThe base URL of the server.
Not required if no value is provided for allowedPathNames
.
The handler to call if all checks pass.
The allowed method(s).
*
can be used to indicate all methods are allowed. Default is[ '*' ]
.