Error: Permission denied to access property "x"
消息
Error: Permission denied to access property "x"
错误类型
错误
.
什么地方出错了?
示例
html
<!doctype html>
<html>
<head>
<iframe
id="myframe"
src="http://www1.w3c-test.org/common/blank.html"></iframe>
<script>
console.log(document.getElementById("myframe").contentWindow.document);
// Error: Permission denied to access property "document"
</script>
</head>
<body></body>
</html>
可以参考