score:3

Accepted answer
fetch("http://localhost:3000/categories/", {
  method: "POST",
  headers: { 
    "Content-Type": "application/json",
    "Accept":"application/json"
  },
  body: JSON.stringify(action.payload)
})

score:3

fetch("http://localhost:3000/categories/", {
      headers: { "content-type": "application/json",
      "Accept":"application/json" },
      body: JSON.stringify(action.payload)
    })

Related Query

More Query from same tag