Error: Permission denied to access property "x"

We'd love to hear more about your role and the company you work for
Please help us by answering a few questions.

๋ฉ”์‹œ์ง€

    Error: Permission denied to access property "x"

์—๋Ÿฌ ํ˜•์‹

๋ฌด์—‡์ด ์ž˜๋ชป๋˜์—ˆ์„๊นŒ?

์ ‘๊ทผ์ด ํ—ˆ๊ฐ€๋˜์ง€ ์•Š์€ ๊ฐ์ฒด์— ์ ‘๊ทผํ•˜๊ธฐ ์œ„ํ•œ ์‹œ๋„๊ฐ€ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. ์•„๋งˆ ๋™์ผ ์ถœ์ฒ˜ ์ •์ฑ…(same-origin policy)์„ ์นจํ•ดํ•˜์—ฌ ๋‹ค๋ฅธ ๋„๋ฉ”์ธ์œผ๋กœ๋ถ€ํ„ฐ ๋กœ๋“œ๋œ <iframe> ์—˜๋ฆฌ๋จผํŠธ์— ๋Œ€ํ•œ ๊ฒƒ์ด์—ˆ์„ ๊ฒ๋‹ˆ๋‹ค.

์˜ˆ

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>

์ฐธ์กฐ