Skip to content

Latest commit

 

History

History
50 lines (18 loc) · 1.12 KB

Interceptors.md

File metadata and controls

50 lines (18 loc) · 1.12 KB

dw::io::http::Interceptors


Index

Functions

Name Description
CORS
isOptions

Functions

CORS

CORS(allowOrigin: Array<String> | "SameOrigin" = [""], allowMethods: Array<String> = ["POST", "GET", "OPTIONS"], allowHTTPHeaders: Array<String> = [""], exposeHeaders: Array<String> = [""], maxAge: Number = -1, allowCredentials: Boolean = false)


CORS(allowOrigin: (HttpServerRequest) -> Array<String>, allowMethods: (HttpServerRequest) -> Array<String>, allowHTTPHeaders: (HttpServerRequest) -> Array<String>, exposeHeaders: (HttpServerRequest) -> Array<String>, maxAge: Number = -1, allowCredentials: Boolean = false)


isOptions

isOptions(request: HttpServerRequest)