Skip to content

Commit

Permalink
fix: update regex (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
carcruz authored Jun 29, 2023
1 parent bba81ca commit d7e3b0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import healthRouter from "./routes/health.js";
import { normalizePort, isProduction, isDevelopment } from "./utils/index.js";

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

const app = express();

Expand All @@ -22,7 +21,10 @@ if (isDevelopment) {
if (isProduction) {
app.use(
cors({
origin: [originRegExp],
origin: [
"https://partner-platform.dev.opentargets.xyz",
"https://partner-platform.opentargets.org",
],
})
);
}
Expand Down

0 comments on commit d7e3b0a

Please sign in to comment.