Skip to content

Commit 5489075

Browse files
committed
fix: disable cors for prod
1 parent d7e3b0a commit 5489075

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

app.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,7 @@ if (isDevelopment) {
1919
}
2020

2121
if (isProduction) {
22-
app.use(
23-
cors({
24-
origin: [
25-
"https://partner-platform.dev.opentargets.xyz",
26-
"https://partner-platform.opentargets.org",
27-
],
28-
})
29-
);
22+
app.use(cors());
3023
}
3124

3225
app.use("/literature", literatureRouter);

0 commit comments

Comments
 (0)