Skip to content

Commit

Permalink
fix: disable cors for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
carcruz committed Jun 29, 2023
1 parent d7e3b0a commit 5489075
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@ if (isDevelopment) {
}

if (isProduction) {
app.use(
cors({
origin: [
"https://partner-platform.dev.opentargets.xyz",
"https://partner-platform.opentargets.org",
],
})
);
app.use(cors());
}

app.use("/literature", literatureRouter);
Expand Down

0 comments on commit 5489075

Please sign in to comment.