browser-plus
browser-plus copied to clipboard
fetch API cannot load file...URL scheme "file" is not supported.
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