Spring Security 解决X-Frame-Options deny

错误信息:

  Refused to display 'https://github.com/hwclass/awesome-sound' in a frame because it set 'X-Frame-Options' to 'deny

 

解决方法

  在配置中添加:

  

	 http
    	 .headers()
         .frameOptions().sameOrigin()
         .httpStrictTransportSecurity().disable()

 

点击查看mozilla文档

 

posted on 2019-08-22 14:13  滚动的蛋  阅读(3925)  评论(0编辑  收藏  举报

导航