Refused to display 'xxx' in a frame ,because it set 'X-Frame-Options' to 'deny'.
走了几次冤枉路,
我本是在DJANGO页面的iframe里嵌入springboot的页面。
当报了这个错误之后,我花了时间在nginx和django上,
后来才改变解决思路,从springboot出发,解决问题。
(其实在springboot替换页面之前,已有同样的go语言开发的页面在提供了类似服务)
b1d6ee2a8987b3f2fc057e465b21bc74acd875ce
解决问题的关键在于在HttpSecurity中禁用frameOptions即可。

protected void configure(HttpSecurity http) throws Exception {http.csrf().disable();http.authorizeRequests().antMatchers("POST", "/A/B").authenticated();     http.httpBasic().authenticationEntryPoint(basicAuthenticationPoint);}

Refused to display 'xxx' in a frame ,because it set 'X-Frame-Options' to 'deny'.相关推荐

  1. Refused to display 'XXX' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

    Refused to display 'XXX' in a frame because it set 'X-Frame-Options' to 'sameorigin'. 今天在学习前后端分离的项目的 ...

  2. uni-app - Refused to display ‘xxx‘ in a frame because an ancestor violates the following Content Sec

    报错原因 整体流程的话,就是将网页通过 web-view 组件内嵌到 App 中(非小程序),其中有跳转微信公众号的需求,不料却收到了以下报错. 我又不是打包小程序,就套壳个 App ,比较疑惑为什么 ...

  3. 在layoutsubviews中设置子控件的frame,保证执行alpha和frame动画流畅度

    在viewDidLoad中初始化需要的子控件,然后提供改变这些子控件的开放接口,然后使用一个bool变量来保存是否已经设置了子类控件的frame类似 -(void)layoutSubviews {[s ...

  4. Refused to display http localhost8080 xxx‘in a frame because it set ‘X-Frame-Options‘ to ‘DENY‘

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

  5. Refused to display ‘http://...‘ in a frame because it set ‘X-Frame-Options‘ to ‘deny‘.解决方式

    在使用springsecurity时候经常会出现Refused to display 'http://localhost:9999/admin/toAdminWelcome' in a frame b ...

  6. Electron iframe报错Refused to display ‘**‘ in a frame because it set ‘X-Frame-Options‘ to ‘sameorigin‘

    Electron中试用iframe标签,访问https://www.baidu.com/结果iframe标签显示空白,并且报错 :9080/#/:1 Refused to display 'https ...

  7. 跨域问题-Refused to display in a frame because it set ‘X-Frame-Options‘ to ‘SAMEORIGIN‘

    今天项目中出现一个用 iframe 嵌套帆软报表页面出现 Refused to display in a frame because it set 'X-Frame-Options' to 'SAME ...

  8. 【转】使用Chrome Frame,彻底解决浏览器兼容问题

    [转]使用Chrome Frame,彻底解决浏览器兼容问题 参考文章: (1)[转]使用Chrome Frame,彻底解决浏览器兼容问题 (2)https://www.cnblogs.com/xuan ...

  9. iOS开发UI篇—手写控件,frame,center和bounds属性

    一.手写控件 1.手写控件的步骤 (1)使用相应的控件类创建控件对象 (2)设置该控件的各种属性 (3)添加控件到视图中 (4)如果是button等控件,还需考虑控件的单击事件等 (5)注意:View ...

最新文章

  1. ruby Mixin用法
  2. Xilinx网站资源导读
  3. 从构建分布式秒杀系统聊聊验证码
  4. java facade dao_java – 在Facade模式中放置用于创建namedQuer...
  5. FileBuffer 与 ImageBuffer 互相转换(滴水PE作业)
  6. 中青旅:在线旅游行业如何选型数据分析平台?
  7. css 横线_atom.css正式发布,从此跟CSS框架说拜拜。
  8. 机器学习岗位太少_太多的东西要学习,很少的时间
  9. WPS Office文档未保存怎么恢复
  10. dueros模拟测试没有请求后台_DuerOS开放平台
  11. 关于学习新知识的一点想法
  12. 【转】关于OnPaint的工作机制
  13. 统计检验 单尾还是双尾
  14. H5动画实现---过渡
  15. 如何使用OBS Virtualcam 和 Live2DViewEX 在视频会议中成为最靓的仔
  16. 颠覆想象,一盏夜灯的变革
  17. 迁移服务器和切换域名
  18. C 常數0L,0LL,0UL,0.0f,0.0L
  19. ubuntu16.04 opencv3.3 python2.7 caffe GPU环境搭建
  20. 用友NC系统考勤机自动同步方案(适合大型商超)

热门文章

  1. 第六篇:基于朴素贝叶斯分类算法的邮件过滤系统
  2. MySQL5.5编译安装
  3. NODEJS项目实践0.4 [domain,pm2,log4js,md5]
  4. 百行代码打造一个DI容器(支持瞬时生命周期、单利生命周期、构造函数自动注入、属性自动注入、字段自动注入)...
  5. 【经验】CentOS 5.2 下用Yum安装Apache+PHP+MySQL环境
  6. dbms_rowid包的BUG问题
  7. RStudio版本号管理 整合Git
  8. A*寻路算法的探寻与改良(三)
  9. [架构设计]反向(或者后向)插件系统设计
  10. 69.2. wget - retrieves files from the web