When I stumbled across this issue it was because of failing tests when I switched from Spring Boot's autoconfiguration to a manually configured Spring Security Configuration. The Spring Boot had CSRF default to false, but Spring security was enabling it by default, so my tests initially failed ...
1.首先关闭所有的谷歌浏览器的页面 2.在你的谷歌浏览器右键 -> 属性 -> 快捷方式 -> 目标 复制 --disable-web-security --user-data-dir 到后面。 ***注意:两个 – 前面都要加空格哦,不然就会报错。 3.直接保存就可以了 再次打开浏览器,出现这个就可以了。...谷歌浏览器...