Variable: CORS_CONFIG
constCORS_CONFIG:object
Defined in: src/api/config.ts:111
Type declaration
allowHeaders
readonlyallowHeaders: readonly ["Authorization","Content-Type","X-Request-ID","Accept","Accept-Language","Bypass-Tunnel-Reminder"]
Allowed request headers.
allowMethods
readonlyallowMethods: readonly ["GET","POST","OPTIONS"]
Allowed HTTP methods.
credentials
readonlycredentials:true=true
Allow credentials (cookies, authorization headers).
exposeHeaders
readonlyexposeHeaders: readonly ["X-Request-ID","X-RateLimit-Limit","X-RateLimit-Remaining","X-RateLimit-Reset","Retry-After"]
Headers exposed to client.
maxAge
readonlymaxAge:86400=86400
Preflight cache duration in seconds.
origins
readonlyorigins: 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.