hmm
This commit is contained in:
parent
55bec002e6
commit
9956ed4550
|
@ -15,8 +15,8 @@ app.use(express.json());
|
||||||
app.use(express.urlencoded({ extended: true }));
|
app.use(express.urlencoded({ extended: true }));
|
||||||
app.use(express.static("public"));
|
app.use(express.static("public"));
|
||||||
app.use(cors({
|
app.use(cors({
|
||||||
origin: "*",
|
// origin: "*",
|
||||||
// origin: inProd ? /\.lingdocs\.com$/ : "*",
|
origin: inProd ? /\.lingdocs\.com$/ : "*",
|
||||||
credentials: true,
|
credentials: true,
|
||||||
}));
|
}));
|
||||||
if (inProd) app.set('trust proxy', 1);
|
if (inProd) app.set('trust proxy', 1);
|
||||||
|
|
Loading…
Reference in New Issue