blob: 2468d0221a2245b27b8f3763ddb6700a6a06ffa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
---
title: 'Error: Permission denied to access property "x"'
slug: Web/JavaScript/Reference/Errors/Property_access_denied
translation_of: Web/JavaScript/Reference/Errors/Property_access_denied
---
<div>{{jsSidebar("Errors")}}</div>
<h2 id="메시지">메시지</h2>
<pre class="syntaxbox">Error: Permission denied to access property "x"
</pre>
<h2 id="에러_형식">에러 형식</h2>
<p>{{jsxref("Error")}}.</p>
<h2 id="무엇이_잘못되었을까">무엇이 잘못되었을까?</h2>
<p>접근이 허가되지 않은 객체에 접근하기 위한 시도가 있었습니다. 아마 동일 출처 정책(<a href="/en-US/docs/Web/Security/Same-origin_policy">same-origin policy</a>)을 침해하여 다른 도메인으로부터 로드된 {{HTMLElement("iframe")}} 엘리먼트에 대한 것이었을 겁니다.</p>
<h2 id="예">예</h2>
<pre class="brush: html"><!DOCTYPE html>
<html>
<head>
<iframe id="myframe" src="http://www1.w3c-test.org/common/blank.html"></iframe>
<script>
onload = function() {
console.log(frames[0].document);
// Error: Permission denied to access property "document"
}
</script>
</head>
<body></body>
</html></pre>
<h2 id="참조">참조</h2>
<ul>
<li>{{HTMLElement("iframe")}}</li>
<li><a href="/en-US/docs/Web/Security/Same-origin_policy">Same-origin policy</a></li>
</ul>
|