新版chrome导致跨域报错,tomcat设置修复

 

tomcat版本需要升级到8.5.47以上

<!-- server.xml -->
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" secure="true" />

<!-- context.xml -->
<CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" sameSiteCookies="None" />

 

posted @ 2020-10-21 14:08  chenzechao  阅读(197)  评论(0编辑  收藏  举报