Unsafe Javascript Attempt To Access Frame With Url (same Domain!)
From the page file://localhost/Users/pistacchio/dev/epress/catflow/test_html/index.html I have the following (coffeescript) code trying to access an iframe: $('#ipad-viewport ifram
Solution 1:
file:///
URLs are subject to a slightly different javascript security policy to the normal same origin policy
that applies to hosted content. In order to stop a saved web page from being able to read the entire contents of your disk, different files are seen as different origins. Just fire up a local server and host your content on that; you will fall back to the "standard" policy where origins are defined by domain/ip.
If for some reason you can't run a web server, you may get some mileage out of the
command line switch: --allow-file-access-from-files
. I believe this has the affect of making all file:///
URLs to be defined as belonging to the same origin.
Post a Comment for "Unsafe Javascript Attempt To Access Frame With Url (same Domain!)"