springBoot springSecurty x-frame-options deny
来源:互联网 发布:遗传算法 船舶调度 编辑:程序博客网 时间:2024/06/08 11:50
项目中用到iframe嵌入网页,然后用到springsecurity就被拦截了 浏览器报错 x-frame-options deny
原因是因为springSecurty使用X-Frame-Options防止网页被Frame
解决办法把x-frame-options disable即可
protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() .anyRequest().authenticated() .and() .formLogin().defaultSuccessUrl("/swagger-ui.html").failureUrl("/login") //登录成功之后的跳转 .permitAll() .and() .headers().frameOptions().disable() .and() .logout().logoutSuccessUrl("/login") .permitAll(); }
阅读全文
1 0
- springBoot springSecurty x-frame-options deny
- BUG: in a frame because it set 'X-Frame-Options' to 'deny'
- in a frame because it set 'X-Frame-Options' to 'DENY'.
- Spring Boot 出现 in a frame because it set 'X-Frame-Options' to 'DENY'
- 通过 Spring Security配置 解决X-Frame-Options deny 造成的页面空白
- 通过 Spring Security配置 解决X-Frame-Options deny 造成的页面空白
- 浏览器IFrame出Refused to display 'URL' in a frame because it set 'X-Frame-Options' to 'DENY' 的错
- 浏览器IFrame出Refused to display 'URL' in a frame because it set 'X-Frame-Options' to 'DENY' 的错
- X-Frame-Options
- X-Frame-Options配置
- X-Frame-Options 响应头
- The X-Frame-Options response header
- The X-Frame-Options response header
- 关于 tomcat 与X-Frame-Options
- X-frame-options头为设置
- X-Frame-Options响应头缺失漏洞
- java 处理 X-Frame-Options header 漏洞
- html 处理 X-Frame-Options header 漏洞
- boss直聘 改不了薪酬
- mitmproxy的过滤表达式(四)
- 如何远程连接桌面
- 设计模式(10)——组合模式
- Swift: 消除警告-Prototype table cells must have reuse identifiers
- springBoot springSecurty x-frame-options deny
- Android Binder机制
- aqtest 004
- python jieba分词并统计词频后输出结果到Excel和txt文档
- 设计模式之桥接模式(Bridge)
- IE浏览器页面样式混乱
- 欢迎使用CSDN-markdown编辑器
- 设计 iOS 应用时需要知道的 5 件事
- ES6学习之路(三) 字符串扩展