I'm getting the cross-domain error on my local machine (although the code works perfectly on our web server). This is a real pain in the butt for development, so what I'm wondering is this - can I adjust a setting in Chrome to not get that error locally anymore?
It's this one:
Unsafe JavaScript attempt to access frame with URL file:///Users/david/login.html from frame with URL file:///Users/david/varReturn.html. Domains, protocols and ports must match.
Thanks!
I'm getting the cross-domain error on my local machine (although the code works perfectly on our web server). This is a real pain in the butt for development, so what I'm wondering is this - can I adjust a setting in Chrome to not get that error locally anymore?
It's this one:
Unsafe JavaScript attempt to access frame with URL file:///Users/david/login.html from frame with URL file:///Users/david/varReturn.html. Domains, protocols and ports must match.
Thanks!
Share Improve this question asked Sep 21, 2012 at 1:51 maskedbaconmaskedbacon 1434 silver badges15 bronze badges1 Answer
Reset to default 9Google has decided that offline file access is cross-domain, regardless. You can try running chrome with --allow-file-access-from-files
. I encountered the same problem when reading text files from the same folder using JavaScript.