Skip to content

Commit

Permalink
Update common-content/en/module/js3/using-fetch/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Wagner-Hall <daniel@codeyourfuture.io>
  • Loading branch information
Dedekind561 and illicitonion authored Jan 28, 2025
1 parent 69eb9e8 commit ceb6756
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common-content/en/module/js3/using-fetch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ http://localhost:8000/index.html

The `http://` prefix shows that you're accessing the file through a proper web server, even though that server is running on your own computer.

You need to be using `http://` (or `https://`) _not_ `file://` in order to use `fetch`.

## Using `fetch`

Previously, we had a list of films hard-coded in our `state`. Now, let's continue using our concept map to fetch data from a server.
Expand Down

0 comments on commit ceb6756

Please sign in to comment.