开发者

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

Im getting this error:

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

What I try to do is to insert into my html page iframe (emb开发者_如何学编程ed 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 ?

thanks for help

EDIT:

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

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

<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></iframe>


This is an error you will see in WebKit browsers (Google Chrome) and has to do with Cross Site Scripting. I've seen this exact same error in my SenchaTouch application when loading videos from Vimeo.

From what I've seen, there is no real way around it, and other than throwing a console error, it won't affect your application. My application runs exactly as expected with this error.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜