We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bba81ca commit d7e3b0aCopy full SHA for d7e3b0a
app.js
@@ -8,7 +8,6 @@ import healthRouter from "./routes/health.js";
8
import { normalizePort, isProduction, isDevelopment } from "./utils/index.js";
9
10
const port = normalizePort(process.env.PORT || "8080");
11
-const originRegExp = /^(.*\.)?opentargets\.(org|xyz)$/;
12
13
const app = express();
14
@@ -22,7 +21,10 @@ if (isDevelopment) {
22
21
if (isProduction) {
23
app.use(
24
cors({
25
- origin: [originRegExp],
+ origin: [
+ "https://partner-platform.dev.opentargets.xyz",
26
+ "https://partner-platform.opentargets.org",
27
+ ],
28
})
29
);
30
}
0 commit comments