diff --git a/app.js b/app.js index 8fb70a5e89e3eefefd530d5383ee4db13b2ecb17..04fcb7789a21aa9ddd5596867c2f5bfd6e0cbc48 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 18efc160a999e749110d8fa5b728feb0dbba45e2..14b3255d00c51a2da75cd7010b220d1d3178280c 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 38198c5d8c75e9ce317a78e8a814cef8eb1fd70c..20d81735058d1cf5007c4aad0ea514fac26e7149 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)