SpringSecurity不允许在frame中展示的问题

Posted IT老刘

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SpringSecurity不允许在frame中展示的问题相关的知识,希望对你有一定的参考价值。

异常问题

Refused to display \'http://localhost:8080/xxx\' in a frame because it set \'X-Frame-Options\' to \'DENY\'

Spring Security4默认是将’X-Frame-Options’ 设置为 ‘DENY’ 所以重新配置下SpringSecurity, 在<http>标签内添加配置:

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

以上是关于SpringSecurity不允许在frame中展示的问题的主要内容,如果未能解决你的问题,请参考以下文章