码迷,mamicode.com
首页 > 编程语言 > 详细

spring security4 问题

时间:2017-08-31 16:17:17      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:from   this   with   deny   efault   spring   标签   代码   head   

<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 问题

标签:from   this   with   deny   efault   spring   标签   代码   head   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!