Unsafe JavaScript attempt to access frame with URL "URL1" from frame with URL "URL2". Domains, protocols and ports must match.
<p>Im getting this error:</p>

<p>Unsafe JavaScript attempt to access frame with URL "URL1" from frame with URL "URL2". Domains, protocols and ports must match.</p>

<p>What I try to do is to insert into my html page iframe (embed youtube video) but link is taken from database on the server side. during rendering site. Its property. Is it really wrong, should I do it in different way ?</p>

<p>thanks for help</p>

<p>EDIT:</p>

<p>I just set url=&lt;%= VideoLink %> in my iframe. This is asp.net code property so I do believe its good question</p>

<p>Ok I even decided to set static link, know the source look like this and error still appears:</p>

<pre><code>&lt;iframe runat="server" ID="iframeYouTubeMini" title="YouTube video player" class="youtube-player" width="152" height="107" src="http://www.youtube.com/embed/test?controls=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;
</code></pre>
