Interface: RequestFilter<T>
RequestFilter allow a service which implement it to control incoming request
If one of the filter replies with "true" then the request will go through
Type parameters
• T extends WebContext
= WebContext
Methods
checkRequest()
checkRequest(
context
,type
):Promise
<boolean
>
Return true if the request should be allowed
Parameters
• context: T
to check for
• type: "CORS"
| "AUTH"
Returns
Promise
<boolean
>