Skip to main content

Variable: CORS_CONFIG

const CORS_CONFIG: object

Defined in: src/api/config.ts:111

Type declaration

allowHeaders

readonly allowHeaders: readonly ["Authorization", "Content-Type", "X-Request-ID", "Accept", "Accept-Language", "Bypass-Tunnel-Reminder"]

Allowed request headers.

allowMethods

readonly allowMethods: readonly ["GET", "POST", "OPTIONS"]

Allowed HTTP methods.

credentials

readonly credentials: true = true

Allow credentials (cookies, authorization headers).

exposeHeaders

readonly exposeHeaders: readonly ["X-Request-ID", "X-RateLimit-Limit", "X-RateLimit-Remaining", "X-RateLimit-Reset", "Retry-After"]

Headers exposed to client.

maxAge

readonly maxAge: 86400 = 86400

Preflight cache duration in seconds.

origins

readonly origins: readonly ["https://chive.pub", "https://www.chive.pub", "http://localhost:3000", "http://127.0.0.1:3000", "http://localhost:5173", "http://127.0.0.1:5173", string]

Allowed origins for CORS requests.