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.

Fetch: POST json data

I'm trying to POST a JSON object using fetch. From what I can understand, I need to attach a stringified …

javascript json fetch-api
Trying to use fetch and pass in mode: no-cors

I can hit this endpoint, http://catfacts-api.appspot.com/api/facts?number=99 via Postman and it returns JSON Additionally I …

javascript reactjs cors create-react-app fetch-api
What does it mean when an HTTP request returns status code 0?

What does it mean when JavaScript network calls such as fetch or XMLHttpRequest, or any other type of HTTP network …

ajax http xmlhttprequest httpresponse fetch-api
Using an authorization header with Fetch in React Native

I'm trying to use fetch in React Native to grab information from the Product Hunt API. I've obtained the proper …

javascript oauth-2.0 react-native fetch-api
Allow Access-Control-Allow-Origin header using HTML5 fetch API

I am using HTML5 fetch API. var request = new Request('https://davidwalsh.name/demo/arsenal.json'); fetch(request).then(function(…

html api url fetch-api
React Native fetch() Network Request Failed

When I create a brand new project using react-native init (RN version 0.29.1) and put a fetch in the render method …

javascript react-native fetch-api
Fetch API with Cookie

I am trying out the new Fetch API but is having trouble with Cookies. Specifically, after a successful login, there …

cookies fetch-api
Setting query string using Fetch GET request

I'm trying to use the new Fetch API: I am making a GET request like this: var request = new Request({ …

javascript jquery http fetch-api
How do I upload a file with the JS fetch API?

I am still trying to wrap my head around it. I can have the user select the file (or even …

javascript fetch-api