From d7e3b0a1e12859b1d5c50a4065ed9b0fbaa85e1a Mon Sep 17 00:00:00 2001 From: Carlos Cruz Date: Thu, 29 Jun 2023 12:14:13 +0100 Subject: [PATCH] fix: update regex (#11) --- app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 34692f8..e7aac70 100644 --- a/app.js +++ b/app.js @@ -8,7 +8,6 @@ import healthRouter from "./routes/health.js"; import { normalizePort, isProduction, isDevelopment } from "./utils/index.js"; const port = normalizePort(process.env.PORT || "8080"); -const originRegExp = /^(.*\.)?opentargets\.(org|xyz)$/; const app = express(); @@ -22,7 +21,10 @@ if (isDevelopment) { if (isProduction) { app.use( cors({ - origin: [originRegExp], + origin: [ + "https://partner-platform.dev.opentargets.xyz", + "https://partner-platform.opentargets.org", + ], }) ); }