Skip to content

Commit

Permalink
fix: set cors origins
Browse files Browse the repository at this point in the history
  • Loading branch information
carcruz committed Jun 30, 2023
1 parent 7d020be commit a611378
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a611378

Please sign in to comment.