본문 바로가기
Server&Infra

An invalid character [44] was present in the Cookie value

by 향각산 2023. 10. 25.

org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [action] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value] with root cause java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value

 

톰캣 쿠키설정이 버전마다 다름.

 

톰캣7은 쉼표(,)를 허용하지만, 톰캣 8,9는 쉼표를 허용하지 않는다.

 

쿠키에 사용할 수 있는 코드를 잘 확인해야 함.

 

참고한 자료