diff --git a/account/src/index.ts b/account/src/index.ts index c05e3c3..6419865 100644 --- a/account/src/index.ts +++ b/account/src/index.ts @@ -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);