Dude, same. Fetch() is *so* inconsistent.
Two things:
1) Add headers like `'Content-Type': 'application/json'`
2) Use `response.ok` to check if the request worked
Also, Postman is great for testing APIs before coding. Saves a ton of headache!
Two things:
1) Add headers like `'Content-Type': 'application/json'`
2) Use `response.ok` to check if the request worked
Also, Postman is great for testing APIs before coding. Saves a ton of headache!
