From 5b52566d52c17a8b0d08e8682bf5607a3b2e6ad6 Mon Sep 17 00:00:00 2001 From: adueck Date: Sun, 29 Jan 2023 23:13:06 +0500 Subject: [PATCH] update cors --- account/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/src/index.ts b/account/src/index.ts index 85303d4..64a63b6 100644 --- a/account/src/index.ts +++ b/account/src/index.ts @@ -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);