❤️ OSS, I share software development know-how & contribute to the projects I rely on (and admire) most: @nodejs @lodash @mongodb @docker @minio @bluebird et al.
I know this is a bit late of a response, but for anyone interested you can get any string data response via response.text() similar to how response.json() will give you a parsed JSON object.
Nice post !
Trying to fetch HTML data with fetch() method is possible?
I am facing some issues with cors
And I can’t fetch HTML data back.
fetch accept URL not sure how you want to fetch HTML for more understanding visit the links in the above comment
I know this is a bit late of a response, but for anyone interested you can get any string data response via
response.text()
similar to howresponse.json()
will give you a parsed JSON object.Cors is an issue with the api itself and not the front-end.
For more information : daveceddia.com/access-control-allo...