X
Tik hier voor de mobiele versie van de website.

Ondersteuningsforum

network error on local webpage, ok on website

Geplaatst

I have a website (oakmontwx.eu5.net) and the front page shows up properly, but when I open the front page locally I get a network error. I am not using localhost on my computer, but I have a javascript routine which reads a text file every 10 seconds. The network error occurs when the page tries to read the file, and only half the webpage appears. On the website there is no problem.

This only started occurring today after Firefox did an auto update. I have refreshed FF and also reinstalled it but the problem persists. The page shows up properly in MS Edge and Safari.

I have a website (oakmontwx.eu5.net) and the front page shows up properly, but when I open the front page locally I get a network error. I am not using localhost on my computer, but I have a javascript routine which reads a text file every 10 seconds. The network error occurs when the page tries to read the file, and only half the webpage appears. On the website there is no problem. This only started occurring today after Firefox did an auto update. I have refreshed FF and also reinstalled it but the problem persists. The page shows up properly in MS Edge and Safari.

Gekozen oplossing

john17 said

I am not using localhost on my computer, but I have a javascript routine which reads a text file every 10 seconds. The network error occurs when the page tries to read the file, and only half the webpage appears. On the website there is no problem.

A security fix in Firefox 68 limits access from file:// pages to other file:// pages. I don't know the exact details of what the restrictions are. Please see the following thread for a workaround, although you might only want to enable it during development:

https://support.mozilla.org/questions/1264312

Does that work for your page?

Dit antwoord in context lezen 1
Citeren

Aanvullende systeemdetails

Geïnstalleerde plug-ins

  • Shockwave Flash 32.0 r0

Toepassing

  • Useragent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0

Meer informatie

jscher2000
  • Top 10 Contributor
8765 oplossingen 71703 antwoorden

Gekozen oplossing

john17 said

I am not using localhost on my computer, but I have a javascript routine which reads a text file every 10 seconds. The network error occurs when the page tries to read the file, and only half the webpage appears. On the website there is no problem.

A security fix in Firefox 68 limits access from file:// pages to other file:// pages. I don't know the exact details of what the restrictions are. Please see the following thread for a workaround, although you might only want to enable it during development:

https://support.mozilla.org/questions/1264312

Does that work for your page?

''john17 [[#question-1264335|said]]'' <blockquote> I am not using localhost on my computer, but I have a javascript routine which reads a text file every 10 seconds. The network error occurs when the page tries to read the file, and only half the webpage appears. On the website there is no problem. </blockquote> A security fix in Firefox 68 limits access from file:// pages to other file:// pages. I don't know the exact details of what the restrictions are. Please see the following thread for a workaround, although you might only want to enable it during development: https://support.mozilla.org/questions/1264312 Does that work for your page?
Was dit nuttig voor u? 1
Citeren

Vraageigenaar

Thanks jscher2000 - that fixed the problem.

Thanks jscher2000 - that fixed the problem.
Was dit nuttig voor u?
Citeren
Een vraag stellen

U moet zich aanmelden bij uw account om op berichten te antwoorden. Stel een nieuwe vraag als u nog geen account hebt.