Welcome to WebmasterWorld Guest from 23.20.238.193

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)



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)

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



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)

WebmasterWorld Senior Member 5+ Year Member



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)

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



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?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month