Top "Fetch-api" questions

The Fetch API is an improved replacement for XHR, for making asynchronous HTTP requests while better managing redirects and interaction with CORS and Service Workers.

Setting authorization header in Fetch API

I have a Node/Express backend and I'm consuming the API with a React Client. I want to be able …

reactjs express fetch-api
Upload progress indicators for fetch?

I'm struggling to find documentation or examples of implementing an upload progress indicator using fetch. This is the only reference …

javascript html fetch-api
How to check if the response of a fetch is a json object in javascript

I'm using fetch polyfill to retrieve a JSON or text from a URL, I want to know how can I …

javascript json fetch-api
Fetch request to local file not working

I'm trying to make a request in a local file, but I don't know when I try to do on …

javascript reactjs fetch-api
Returning HTML With fetch()

I'm trying to fetch a file and return it's HTML. However it's not as simple as I'd have imagined. fetch(…

javascript fetch-api
fetch API to get HTML response

I am trying to get a page's HTML using fetch API. Here is my code. var quizUrl = 'http://www.lipsum.…

javascript fetch-api
How to get JSON data from fetch (react-native)

I'm writing small app for iPhone using react native. I'm trying to fetch JSON data from a website using fetch. …

javascript ios json react-native fetch-api
Fetch API vs XMLHttpRequest

I know that Fetch API uses Promises and both of them allow you to do AJAX requests to a server. …

javascript ajax xmlhttprequest fetch-api
Read the body of a Fetch Promise

I'm sure this has a simple answer, but for the life of me I can't figure out how to do …

javascript node.js fetch-api
fetch - Missing boundary in multipart/form-data POST

thanks for stopping by. I want to send a new FormData() as the body of a POST request using the …

javascript xmlhttprequest fetch form-data fetch-api