საიტის გასაუმჯობესებელი სამუშაოების მიმდინარეობისას, შესაძლებლობების ნაწილი შეიზღუდება. თუ სტატიით ვერ მოახერხებ ხარვეზის გამოსწორება და შეკითხვის დასმა გსურთ, ჩვენი მხარდაჭერის გუნდი დაგეხმარებათ @FirefoxSupport გვერდის მეშვეობით Twitter-ზე და /r/firefox განყოფილებაში Reddit-ზე.

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

I want to load a local file with "new XMLHttpRequest();". The page works in Chrome with the extension "chrome.exe --allow-file-access-from-files" but no in Fire

  • 3 პასუხი
  • 4 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 1 ნახვა
  • ბოლოს გამოეხმაურა arcadi

Hi,

I am developing a javascript code in a localhost, and I need to read a local file with "new XMLHttpRequest();". The code works with a Google Chrome, but with the extencion "chrome.exe --allow-file-access-from-files --disable-web-securit --disable-web-securit".

What I have to do for work it in Firefox?

Thanks

Hi, I am developing a javascript code in a localhost, and I need to read a local file with "new XMLHttpRequest();". The code works with a Google Chrome, but with the extencion "chrome.exe --allow-file-access-from-files --disable-web-securit --disable-web-securit". What I have to do for work it in Firefox? Thanks

ყველა პასუხი (3)

Firefox security policies may noy allow for safety reasons to execute local JS code on your computer from a file.

Why you'd need that anyway? If you want it to work maybe you should think uploading it to a server.

I need to develop an aplication for create and deform 3D object. And I only found a library in JavaScript and It works.

The problem is that I need to send the positions of the objects (X, Y, Z) by a external aplication build in C++.

This external aplication make a .txt file with the parametres every 500ms, and the local webpage needs to read this file.

For this razon I have allow this security polices.

A lot of thanks.