Skip to content
Snippets Groups Projects
Commit 8a447bbd authored by Ubuntu's avatar Ubuntu
Browse files

refactor: 도메인적용한 세션로그인

parent 4341f8d2
No related branches found
No related tags found
1 merge request!42[#25] 배포코드 master브랜치로 이동
......@@ -53,9 +53,9 @@ app.use(
rolling: true,
cookie: {
httpOnly: true,
secure: false,
secure: true,
maxAge: 60 * 60 * 1000, // 1시간
sameSite: 'raw',
sameSite: 'none',
},
})
);
......
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
GET /api/auth/login 302 7.657 ms - 0
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)
GET /api/auth/login 302 7.628 ms - 0
CORS Origin: undefined
GET /api/schedule/all 401 3.524 ms - 44
GET /api/schedule/all 401 3.639 ms - 44
CORS Origin: undefined
GET /api/schedule/all 401 1.347 ms - 44
(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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment