解决控制台报错Refused to display 'http://localhost/xxxx' in a frame because it............

解决办法如下:

找到SpringSecurityConfigurer这个类,修改如下:

复制代码

@Override
protected void configure(HttpSecurity httpSecurity) throws Exception {
 	 httpSecurity.headers().frameOptions().disable();
}

来源:https://www.cnblogs.com/ycyzharry/p/9888297.html

发布了27 篇原创文章 · 获赞 3 · 访问量 2626

猜你喜欢

转载自blog.csdn.net/qq_42426937/article/details/99775910