Skip to main content

@webda/coreReadme | API


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>

Source

packages/core/src/core.ts:178