【发布时间】:2014-02-18 08:42:00
【问题描述】:
我正在开发 django 网站并使用 <iframe> 标签嵌入 OpenERP。
示例:
<html>
<head>
<title>my website</title>
</head>
<body>
<h3>my website content </h3>
<iframe src="http://192.168.1.54:8069/" width="1024" height="600"></iframe>
</body>
</html>
创建向导(例如销售订单行/)未打开。在浏览器控制台窗口上显示错误,例如
Uncaught SecurityError: Blocked a frame with origin
"http://192.168.1.54:8069"访问原点为“null”的框架。 请求访问的帧具有“http”协议,该帧是 访问具有“文件”协议。协议必须匹配。
尝试 V6 和 V7,但在这两种情况下都行不通
这个问题与same origin policy有关,我该如何解决这个问题
【问题讨论】: