unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
6 lines • 460 B
TypeScript
import type { RequestHandler } from 'express';
import type { IUnleashConfig } from '../types/index.js';
import type { IUnleashServices } from '../services/index.js';
export declare const resolveOrigin: (allowedOrigins: string[]) => string | string[];
export declare const corsOriginMiddleware: ({ frontendApiService }: Pick<IUnleashServices, "frontendApiService">, config: IUnleashConfig) => RequestHandler;
//# sourceMappingURL=cors-origin-middleware.d.ts.map