My problem is -- I have a html file which is really JS program, which reads web pages and show them in customized manner (i.e. it displays the same content in a different way).
Basically, I create XMLHttpRequest object and then
req.open("GET", web_page_address, false);
req.send("");
This gives me (in firefox) an error:
Error: uncaught exception: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)"
I already googled, and looked at SO but all other issues are very similar with those two exceptions:
the file I open in firefox is a local file, opened directly in browser -- I don't have www server running at localhost
I don't have any control over the web pages I am reading stuff from
So, several solutions I've seen so far (like adding PHP proxy, changing the way external server sends data) cannot be applied here.
What else can be done in such case? Another story is I am wondering if such strict security for directly local file has any sense.
Thank you in advance for tips/links/etc.
Have a nice day!
edit: Any straightforward way won't work because Firefox does this on purpose:
https://bugzilla.mozilla.org/show_bug.cgi?id=560488