Skip to content

web-backend


Variable: CorsConfig ​

const CorsConfig: object

Defined in: packages/web-backend/src/cors.ts:5

Default CORS configuration for the backend HTTP server. Allows common methods/headers and any origin; tune in production as needed.

Type Declaration ​

allowedHeaders ​

allowedHeaders: string[]

maxAge ​

maxAge: number = 86400

methods ​

methods: string[]

optionsSuccessStatus ​

optionsSuccessStatus: number = 200

origin ​

origin: string = "*"

preflightContinue ​

preflightContinue: boolean = true