weeeird
This commit is contained in:
parent
33e74b9c16
commit
42007a7ad2
|
@ -18,6 +18,7 @@ app.use(cors({
|
|||
// origin: "*",
|
||||
origin: inProd ? /\.lingdocs\.com$/ : "*",
|
||||
credentials: true,
|
||||
methods: "GET,HEAD,PUT,PATCH,POST,DELETE",
|
||||
}));
|
||||
if (inProd) app.set('trust proxy', 1);
|
||||
setupSession(app);
|
||||
|
|
Loading…
Reference in New Issue