UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge.

13 lines 370 B
import { RE_DEV_SERVER_ORIGIN } from './regex.constants.js'; export const devServerCorsConfig = { origin: (origin, callback) => { if (!origin || RE_DEV_SERVER_ORIGIN.test(origin)) { callback(null, true); } else { callback(null, false); } }, credentials: true, }; //# sourceMappingURL=cors.config.js.map