var headers = new Headers();
headers.append('Accept', 'application/json');
var request = new Request(URL, {
headers: headers,
method:"GET"
});
fetch(request).then(function(response) {
console.log(response);
});
It seems that the headers object is sent, and it seems that your method does not have a value. The 404 is because your url does not exist. Test it with postman first.
It seems that the headers object is sent, and it seems that your method does not have a value. The 404 is because your url does not exist. Test it with postman first.