【发布时间】:2017-10-09 17:10:04
【问题描述】:
当我输入 allow-same-origin 时,它可以工作,但是当我删除它时,我有:
阻止来源为“http://localhost:****”的框架访问 跨域框架。
我只需要允许允许脚本和允许模式。
这是工作代码:
function updateIframe(iframe) {
iframe[0].contentWindow.getMinHeight();
}
我在论坛上搜索,但 iframe 和站点的协议和域是相同的。我不明白哪里可能出错。
父母:http://localhost****
iframe 源代码:http://localhost:****/My/path/for/the/file
端口相同,为了 cookie 安全,我需要避免 allow-same-origin
【问题讨论】:
标签: javascript html node.js iframe