From 4f05b986f68d4c324248c49883379a714fffe81c Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Thu, 1 Sep 2022 19:17:32 +0400 Subject: [PATCH] cors headers - why? --- 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 7efe698..6ced9fe 100644 --- a/account/src/index.ts +++ b/account/src/index.ts @@ -18,7 +18,7 @@ app.use(cors({ // origin: "*", origin: inProd ? /\.lingdocs\.com$/ : "*", credentials: true, - methods: "GET,HEAD,PUT,PATCH,POST,DELETE", + methods: ["GET","HEAD","PUT","POST","DELETE"], })); if (inProd) app.set('trust proxy', 1); setupSession(app);