The problem is this. I want to play with the history object via js, but the browser does not allow it to do without the domain name (same-origin policy), that is, it is impossible to open the file from the explorer.

But JetBrains products provide a cool opportunity by clicking the "show in browser" button to create something with the server and open it. Only here except for this page there is nothing.

That is the project structure:

- page.html - scripts.js 

I click page.html -> to show in the browser, everything is fine, but I try to open script.js I get 404. Is there a way to solve this? And the opportunity is convenient ...

  • one
    That kind of thing will not help you? - isnullxbh
  • and how are you trying to load scripts.js into a browser? Javaskrit just can not be opened in the browser, you need an html page. Or are you just trying to open http://localhost:63342/project-name/scripts.js this URL in the address bar of the browser? - lena
  • It is loaded in an html file. But nothing happens, so I just checked its availability through localhost: 63342 / project-name / scripts.js , to which the browser responded to me 404 - Uraty

0