tomcat cookie domain validation

前端 未结 3 1009
野趣味
野趣味 2021-02-07 11:49

I\'m using tomcat 8.0.21 with the new Rfc6265 cookie processor. If there are cookies starting with a dot I\'m getting the following error:

java.lang.IllegalArgum         


        
3条回答
  •  心在旅途
    2021-02-07 12:27

    I'm using a new version of Tomcat 8 (from this last October) and after add the line to force use the legacy cookie processor, it works fine. On your ${catalina.base}conf/context.xml:

    
    
    
    
    WEB-INF/web.xml
    ${catalina.base}/conf/web.xml
    
    
    
    
    
    
    

    I hope this may be your case. Just set this CookieProcessor, and your implementation will be working as was in previous versions of Tomcat 8.

提交回复
热议问题