Skip to content

Commit

Permalink
Merge pull request #97 from oduck-team/feature/96
Browse files Browse the repository at this point in the history
브라우저 종료시 세션 유지 안 되는 문제 #96Feature/96
  • Loading branch information
FaberJoo authored Nov 10, 2023
2 parents 6bc1ae2 + 23015dc commit ef6f51e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ server:
domain: ${.session.domain} # 유효 도메인을 지정. 해당 도메인과 그 서브도메인에서 쿠키가 유효
http-only: true # 브라우저에서 해당 쿠키에 대한 JavaScript 접근을 제한합니다. 이를 통해 XSS 공격을 방지할 수 있습니다.
secure: false # HTTPS 연결을 통해서만 전송 가능.
max-age: 1209600 # 쿠키의 유효 시간을 초 단위로 설정.
timeout: 1209600 # 세션 타임아웃 시간을 초 단위로 설정..

management:
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ server:
domain: ${.session.domain} # 유효 도메인을 지정. 해당 도메인과 그 서브도메인에서 쿠키가 유효
http-only: true # 브라우저에서 해당 쿠키에 대한 JavaScript 접근을 제한합니다. 이를 통해 XSS 공격을 방지할 수 있습니다.
secure: false # HTTPS 연결을 통해서만 전송 가능.
max-age: 1209600 # 쿠키의 유효 시간을 초 단위로 설정.
timeout: 1209600 # 세션 타임아웃 시간을 초 단위로 설정..

management:
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ server:
http-only: true # 브라우저에서 해당 쿠키에 대한 JavaScript 접근을 제한합니다. 이를 통해 XSS 공격을 방지할 수 있습니다.
secure: true # HTTPS 연결을 통해서만 전송 가능.
same-site: none # CSRF 공격을 방지하기 위해 SameSite 속성을 설정.
max-age: 1209600 # 쿠키의 유효 시간을 초 단위로 설정.
timeout: 1209600 # 세션 타임아웃 시간을 초 단위로 설정..

management:
Expand Down

0 comments on commit ef6f51e

Please sign in to comment.