解決辦法如下:
找到SpringSecurityConfigurer這個類,修改如下:
複制代碼
@Override
protected void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity.headers().frameOptions().disable();
}
來源:https://www.cnblogs.com/ycyzharry/p/9888297.html