update cors
This commit is contained in:
parent
41852a9ba8
commit
5b52566d52
|
@ -19,7 +19,7 @@ app.use(express.json());
|
|||
app.use(express.urlencoded({ extended: true }));
|
||||
app.use(express.static("public"));
|
||||
app.use(cors({
|
||||
origin: inProd ? /\.lingdocs\.com$/ : "*",
|
||||
origin: "*",// inProd ? /\.lingdocs\.com$/ : "*",
|
||||
credentials: true,
|
||||
}));
|
||||
if (inProd) app.set('trust proxy', 1);
|
||||
|
|
Loading…
Reference in New Issue