【问题标题】:Neo4j browser in an iframe - how to set frame-ancestors security policyiframe 中的 Neo4j 浏览器 - 如何设置框架祖先安全策略
【发布时间】:2017-12-18 09:07:09
【问题描述】:

使用 Neo4j 社区版本 3.1.1,我成功地将 Neo4j 浏览器嵌入到我创建的 Web 应用程序的 iframe 中。在 3.2.0 版本中,尝试通过 iframe 查看浏览器时出现以下错误:

拒绝在框架中显示“http://xxxxxx:7474/browser/”,因为祖先违反了以下内容安全策略指令:“frame-ancestors 'none'”。

有没有办法配置 Neo4j 服务器以设置 Content-Security-Policy: frame-ancestors 'self' 或我运行 Neo4j 的特定地址?

【问题讨论】:

    标签: iframe neo4j


    【解决方案1】:

    此行为是由于以下标头(对于 Neo4J 3.2.1):

    • Content-Security-Policy:frame-ancestors 'none'
    • X 框架选项:拒绝

    org.neo4j.server.web.StaticContentFilter 几乎不会强制执行这些标头,org.neo4j.server.web.Jetty9WebServer.loadStaticContent(SessionManager, String) 静态加载这些标头

    所以目前看来,似乎没有任何选项或参数可用于绕过此安全性。

    欢迎任何更新!

    【讨论】:

      猜你喜欢
      • 2021-10-31
      • 1970-01-01
      • 2019-09-22
      • 2019-05-09
      • 2018-06-05
      • 1970-01-01
      • 2019-05-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多