본문 바로가기
Server

[Tomcat8] samesite none, Security Cookie 설정

by 전재훈 2020. 8. 7.
반응형

크롬이 80 버전부터 samesite 설정이 기본 none에서 lax로 변경되면서 결제 모듈 등에서 문제가 발생할 수 있습니다.

(로그인 해제 등의 문제)

 

이럴 때는 samesite 설정을 none으로 바꾸면됩니다.

(보안상의 문제로 https를 필수로 해야함)

 

저는 톰캣 8.5 버전에 적용했습니다.

 

1. 톰캣HOME/conf/server.xml

<CookieProcessor sameSiteCookies="none" />  

 

2. 웹 소스 내의 web.xml

<cookie-config>

    <http-only>true</http-only>

    <secure>true</secure>

</cookie-config>

반응형

댓글