0

I working on a task from my textbook and it suggests to make two thread main and background one. But browsers cannot load data from local device for background thread, can they? What do I do in this scenario?

I tried using Google Chrome, IE, FireFox, it is still the same result, but in FireFox it says:

Security Error: Content at file:///C:/Users/Professional/Downloads/FTP/12/ex12.3/12.3.html may not load data from file:///C:/Users/Professional/Downloads/FTP/12/ex12.3/12.3.js.
  • 1
    You need to run a local webserver – yunzen Jan 09 '23 at 12:25
  • Thanks man, I thought about it, but did not know it was necessary, I'll try it –  Jan 09 '23 at 12:26
  • But I thought maybe there is some different solution, I am completely novice to web-developing and programming overall –  Jan 09 '23 at 13:22
  • No there is no other way then using a webserver. You might use an existing webserver service, where you can upload your code. Depending on the structure of your code you might be able to test on services like codepen or jsfiddle – yunzen Jan 09 '23 at 13:34
  • Yeah, online editor worked for me, I guess I'm learning –  Jan 11 '23 at 09:35

0 Answers0