From a611378c589e71da0ed65bf9934b505461aa4c27 Mon Sep 17 00:00:00 2001 From: Carlos Cruz Date: Fri, 30 Jun 2023 14:04:25 +0100 Subject: [PATCH] fix: set cors origins --- app.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index a6a3e24..da0b78c 100644 --- a/app.js +++ b/app.js @@ -19,7 +19,16 @@ if (isDevelopment) { } if (isProduction) { - app.use(cors()); + app.use( + cors({ + origin: [ + "https://partner-platform.opentargets.org", + "https://partner-platform.dev.opentargets.xyz", + "https://platform.opentargets.org", + "https://platform.dev.opentargets.xyz", + ], + }) + ); } app.use("/literature", literatureRouter);