Jump to content

[HELP-ME] Error in Browser and don't play my music?


marcelojean10
 Share

Recommended Posts

The problem is to do with security and running your code without a webserver, imagine webpages could access local files - that would be a problem.

You either need to run a local webserver to serve the files up or you can run chrome insecurely with a flag. https://stackoverflow.com/questions/18586921/how-to-launch-html-using-chrome-at-allow-file-access-from-files-mode

What I do instead is just make a lightweight node server, and run it up when I want to test my code.

https://stackoverflow.com/questions/6084360/using-node-js-as-a-simple-web-server

 

Hope that helps.

 

Thanks, Jammy

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...