From 8a447bbda9408405c5c20cb645363daa8a3bc670 Mon Sep 17 00:00:00 2001 From: Ubuntu <ubuntu@ip-172-31-1-27.ap-northeast-2.compute.internal> Date: Wed, 4 Dec 2024 05:41:29 +0000 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=8F=84=EB=A9=94=EC=9D=B8?= =?UTF-8?q?=EC=A0=81=EC=9A=A9=ED=95=9C=20=EC=84=B8=EC=85=98=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 4 ++-- output.log | 21 ++++++--------------- weblog.log | 4 ++-- 3 files changed, 10 insertions(+), 19 deletions(-) diff --git a/app.js b/app.js index 8fb70a5..04fcb77 100644 --- a/app.js +++ b/app.js @@ -53,9 +53,9 @@ app.use( rolling: true, cookie: { httpOnly: true, - secure: false, + secure: true, maxAge: 60 * 60 * 1000, // 1�쒓컙 - sameSite: 'raw', + sameSite: 'none', }, }) ); diff --git a/output.log b/output.log index 18efc16..14b3255 100644 --- a/output.log +++ b/output.log @@ -1,23 +1,14 @@ MongoDB URI: mongodb+srv://admin:lim1234!!@goodmeeting.vkniz.mongodb.net/ -(node:4343) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version +(node:4550) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version (Use `node --trace-warnings ...` to show where the warning was created) -(node:4343) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version +(node:4550) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version �� MongoDB �곌껐 �깃났 Rdb�곗씠�곕쿋�댁뒪 �곌껐 �깃났. 紐⑤뱺 紐⑤뜽�� �깃났�곸쑝濡� �숆린�붾릺�덉뒿�덈떎. Server is running on 8080 CORS Origin: undefined -[0mGET /api/auth/login [36m302[0m 7.657 ms - 0[0m -TypeError: option sameSite is invalid - at Object.serialize (/home/ubuntu/webback/node_modules/express-session/node_modules/cookie/index.js:290:15) - at setcookie (/home/ubuntu/webback/node_modules/express-session/index.js:665:21) - at ServerResponse.<anonymous> (/home/ubuntu/webback/node_modules/express-session/index.js:248:9) - at ServerResponse.writeHead (/home/ubuntu/webback/node_modules/on-headers/index.js:35:16) - at ServerResponse._implicitHeader (node:_http_server:338:8) - at writetop (/home/ubuntu/webback/node_modules/express-session/index.js:284:15) - at ServerResponse.end (/home/ubuntu/webback/node_modules/express-session/index.js:351:16) - at strategy.redirect (/home/ubuntu/webback/node_modules/passport/lib/middleware/authenticate.js:342:13) - at stored (/home/ubuntu/webback/node_modules/passport-oauth2/lib/strategy.js:285:14) - at NullStore.store (/home/ubuntu/webback/node_modules/passport-oauth2/lib/state/null.js:5:3) +[0mGET /api/auth/login [36m302[0m 7.628 ms - 0[0m CORS Origin: undefined -[0mGET /api/schedule/all [33m401[0m 3.524 ms - 44[0m +[0mGET /api/schedule/all [33m401[0m 3.639 ms - 44[0m +CORS Origin: undefined +[0mGET /api/schedule/all [33m401[0m 1.347 ms - 44[0m diff --git a/weblog.log b/weblog.log index 38198c5..20d8173 100644 --- a/weblog.log +++ b/weblog.log @@ -1,6 +1,6 @@ -(node:4344) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version +(node:4551) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version (Use `node --trace-warnings ...` to show where the warning was created) -(node:4344) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version +(node:4551) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version MongoDB �곌껐 �ㅽ뙣: MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017 at _handleConnectionErrors (/home/ubuntu/webback/node_modules/mongoose/lib/connection.js:909:11) at NativeConnection.openUri (/home/ubuntu/webback/node_modules/mongoose/lib/connection.js:860:11) -- GitLab