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.static("public"));
|
||||
app.use(cors({
|
||||
origin: "*",
|
||||
// origin: inProd ? /\.lingdocs\.com$/ : "*",
|
||||
// origin: "*",
|
||||
origin: inProd ? /\.lingdocs\.com$/ : "*",
|
||||
credentials: true,
|
||||
}));
|
||||
if (inProd) app.set('trust proxy', 1);
|
||||
|
|
Loading…
Reference in New Issue