This commit is contained in:
lingdocs 2022-09-01 18:49:27 +04:00
parent 55bec002e6
commit 9956ed4550
1 changed files with 2 additions and 2 deletions

View File

@ -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);