CORS Config
CORS configuration with allowed origins, methods, headers, and credentials.
api
Install
$ npx shadcn@latest add @open-types/cors-config
Source
export interface CORSConfig {
allow_origin: string | string[];
allow_methods?: string[];
allow_headers?: string[];
expose_headers?: string[];
allow_credentials?: boolean;
max_age?: number;
}
export interface CORSConfig {
allow_origin: string | string[];
allow_methods?: string[];
allow_headers?: string[];
expose_headers?: string[];
allow_credentials?: boolean;
max_age?: number;
}