Is there way to access local files not in the current directory on Firefox?
I’ve done this
about:config -> security.fileuri.strict_origin_policy to false
from a comment in jQuery's .getJSON using local files stopped working on Firefox 3.6.13.
It’s especially noticeable when I use jQuery.getScript() and call a file from a subdirectory or the parent directory.It says it’s loaded but doesn’t do anything with it, it appears.
Yes, you set
security.fileuri.strict_origin_policytofalse. If you’ve done it already then your problem is caused by something else and you need to ask a different question (preferably with some code). I tested it with the following HTML file:With
test.jsbeing:With
security.fileuri.strict_origin_policyset totruenothing happens (not even a message in the Error Console). Once it is set tofalseI see the message"Test succeeded"and then another message sayingsuccess: alert("Test succeeded");. As one would expect.That’s Firefox 6.0.1 on Windows 7 x64. Edit: It’s the same with Firefox 3.6.21.