Copyright 2024 Mytra Control S.L. All rights reserved.

Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.

interface CorsConfig {
    allowAppClients?: boolean;
    allowHeaders?: string[];
    credentials?: boolean;
    enabled: boolean;
    exposedHeaders?: string[];
    maxAge?: number;
    methods?: string[];
    optionsSuccessStatus?: 200 | 204;
    preflightContinue?: boolean;
    whitelist?: string | (string | RegExp)[];
}

Properties

allowAppClients?: boolean
allowHeaders?: string[]
credentials?: boolean
enabled: boolean
exposedHeaders?: string[]
maxAge?: number
methods?: string[]
optionsSuccessStatus?: 200 | 204
preflightContinue?: boolean
whitelist?: string | (string | RegExp)[]