Skip to content

Commit d7e3b0a

Browse files
authored
fix: update regex (#11)
1 parent bba81ca commit d7e3b0a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import healthRouter from "./routes/health.js";
88
import { normalizePort, isProduction, isDevelopment } from "./utils/index.js";
99

1010
const port = normalizePort(process.env.PORT || "8080");
11-
const originRegExp = /^(.*\.)?opentargets\.(org|xyz)$/;
1211

1312
const app = express();
1413

@@ -22,7 +21,10 @@ if (isDevelopment) {
2221
if (isProduction) {
2322
app.use(
2423
cors({
25-
origin: [originRegExp],
24+
origin: [
25+
"https://partner-platform.dev.opentargets.xyz",
26+
"https://partner-platform.opentargets.org",
27+
],
2628
})
2729
);
2830
}

0 commit comments

Comments
 (0)