Reputation: 11545
How do you make XHR cross-domain request in firefox 17+ from a local html file?
I know an extension would work, but I'd rather not have to "add" anything to firefox unless its necessary.
Upvotes: 4
Views: 4943
Reputation: 11545
I found the answer. You need to toggle security.fileuri.strict_origin_policy to false by in "about:config". It affects "anything that does same-origin checks, including XMLHttpRequest, XSLT, and XBL."
This also allows reading of local files to a certain extent, so it may cause security issues.
Upvotes: 4