【发布时间】:2016-11-15 14:00:46
【问题描述】:
在 Chrome 中,当我尝试访问下面错误中显示的 xml 链接时,我收到此错误。
不安全地尝试从 URL http://build:8080/view/application/job/Project/Report/SourceMonitor-details.xml 的框架加载 URL http://build:8080/view/application/job/Project/Report/SourceMonitor.xslt。域、协议和端口必须匹配。
据我所知域,协议和端口是相同的。
这些文件都托管在 Jenkins CI 网络服务器上,所以不是因为它是本地文件。
当我在 Internet Explorer 中打开 xml 文件时,它可以工作。
xml 文件使用如下所示的 xml 标记链接到 xslt。
<?xml-stylesheet type="text/xsl" href="SourceMonitor.xslt"?>
我在这里错过了什么?
【问题讨论】:
标签: html xml xslt jenkins content-security-policy