Welcome to WebmasterWorld Guest from 54.224.13.210

Forum Moderators: open

Message Too Old, No Replies

Unsafe JavaScript attempt to access frame with URL

     
5:40 am on Aug 2, 2013 (gmt 0)

New User

joined:July 16, 2013
posts: 1
votes: 0


Im my website i'm trying to load an external link (which is a flash type file) in a frame. It's throwing an error "Unsafe JavaScript attempt to access frame with URL" If i'm not wrong it's because of cross domain issue. Can some body help me out to resolve this.

Thanks in advance.
3:09 pm on Aug 8, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


Welcome to WebmasterWorld!

How exactly are you loading the link? Using
location.href
would be safe and would not cause an error.
6:07 pm on Aug 8, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Dec 13, 2009
posts:945
votes: 0


If the target site is not on your domain, and that site is issuing this header:
X-Frame-Options: SAMEORIGIN

Then the browser will not load it within the iframe unless the security level of the browser is turned right down.
10:19 am on Aug 12, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


vinothvijay, have you tested the headers sent back by the server?

Is your page and the current iframe on the same domain? Is your page and the target page on the same domain?
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members