browser-plus icon indicating copy to clipboard operation
browser-plus copied to clipboard

fetch API cannot load file...URL scheme "file" is not supported.

Open jonschull opened this issue 6 years ago • 0 comments

This code works with http.serve and with subethaedit. But surprisingly, not with atom Browser-Plus

<!DOCTYPE html>
<html>
  <head> 
  </head>
  <body>
    hello
    <script>
     fetch('fetchtest.html')


    </script>
  </body>
</html>

Here is what show up in devtools

fetch API cannot load file:///Users/jonschull-MBPR/Downloads/app%202/fetchtest.html. URL scheme "file" is not supported.
(anonymous) @ fetchtest.html:10
fetchtest.html:10 Uncaught (in promise) TypeError: Failed to fetch
    at fetchtest.html:10
(anonymous) @ fetchtest.html:10

jonschull avatar Jun 16 '18 20:06 jonschull