unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
5 lines (4 loc) • 333 B
TypeScript
import { RequestHandler } from 'express';
import { IUnleashConfig, IUnleashServices } from '../types';
export declare const resolveOrigin: (allowedOrigins: string[]) => string | string[];
export declare const corsOriginMiddleware: ({ proxyService }: Pick<IUnleashServices, 'proxyService'>, config: IUnleashConfig) => RequestHandler;