Interface: HttpCorsConfig
Interface: HttpCorsConfig
Properties
allowedHeaders
allowedHeaders: string | string[];
The headers that are allowed in CORS requests.
credentials
credentials: boolean;
Whether credentials are allowed in CORS requests.
exposedHeaders
exposedHeaders: string | string[];
The headers that are exposed to the client in CORS responses.
maxAge
maxAge: null | number;
The maximum age for preflight requests.
methods
methods: string | string[];
The allowed methods for CORS requests.
origin
origin: string | string[];
The allowed origins for CORS requests.
preflightStop
preflightStop: boolean;
Whether to stop processing preflight requests.
successStatus
successStatus: number;
The HTTP status code to use for successful preflight requests.