首页 > 编程语言 > 详细

spring security4 问题

时间:2017-08-31 15:29:01      阅读:316      评论:0      收藏:0      [点我收藏+]

<headers>
            <frame-options policy="SAMEORIGIN" />
</headers>

 

spring security升级为4 的时候 会出现重定向问题

可以在 http 标签内添加如上的代码解决

 

  • DENY - is a default value. With this the page cannot be displayed in a frame, regardless of the site attempting to do so.
  • SAMEORIGIN - I assume this is what you are looking for, so that the page will be (and can be) displayed in a frame on the same origin as the page itself
  • ALLOW-FROM  Allows you to specify an origin, where the page can be displayed in a frame.

 

spring security4 问题

原文:http://www.cnblogs.com/feicheng/p/7458087.html

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