Skip to content Skip to sidebar Skip to footer

Managing Cors With Fetch Api Get Request

I have an end point at localhost:8080/enquiry which renders the following JSON: [{'_id':'5a283e4c5a36f4556af34742', 'firstName':'bob', 'surname':'hoskins', 'telephoneNumbe

Solution 1:

res.json() returns a promise of an object parsed from JSON.

You ignore its returned object, so you don't get any JSON.

Post a Comment for "Managing Cors With Fetch Api Get Request"