Saturday, March 26, 2011

Unsafe JavaScript attempt to access frame with URL

Getting a "Unsafe JavaScript attempt to access frame with URL" message in Chrome when trying something dodgy across domains or subdomains with iframes?

It is pretty much a browser security feature. So there's no way it is going to work.

Eventually I settled for doing everything from within an iframe.

2 comments:

  1. Anonymous3:09 AM

    Why does Chrome throw this error even on local resources? Once uploaded to a webserver (even localhost) and it works fine though.

    ReplyDelete
  2. at a guess. it would be a security feature of browsers to make sure you are accessing it from the same qualified domain name. so a local folder might pose too much of a risk.

    ReplyDelete