首页 > 编程语言 > 详细

springboot security 项目出现 in a frame because it set 'X-Frame-Options' to 'deny'

时间:2020-04-12 11:11:03      阅读:570      评论:0      收藏:0      [点我收藏+]

springboot security 项目通过链接打开一个新的页面时,出现 in a frame because it set ‘X-Frame-Options‘ to ‘deny‘ 错误,如下图所示

 

技术分享图片

 

 技术分享图片

解决方法:

//防止iframe
http.headers().frameOptions().disable();

加上以上代码即可解决问题

 

springboot security 项目出现 in a frame because it set 'X-Frame-Options' to 'deny'

原文:https://www.cnblogs.com/arsn/p/12684004.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!