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.

Javascript Fetch API - How to save output to variable as an Object (not the Promise)

Please, how can I save output of fetch to a variable - to be able to work with it as …

javascript fetch-api
What is the difference between isomorphic-fetch and fetch?

I've seen two different fetch here: https://github.com/github/fetch https://github.com/matthew-andrews/isomorphic-fetch Can someone tell me …

javascript fetch-api isomorphic-fetch-api
Handle response - SyntaxError: Unexpected end of input when using mode: 'no-cors'

I tried a ReactJS fetch call to a REST-API and want to handle the response. The call works, i get …

javascript json reactjs cors fetch-api
Chrome - Fetch API cannot load file. How to workaround?

I have the following two files: index.html <html> <head> <meta charset="utf-8" /> <…

javascript google-chrome firefox fetch-api file-uri
Making fetch API work with CORS after OPTIONS response

I are trying to fetch data from our API. The API has enabled CORS support and returns the below response …

javascript reactjs react-native cors fetch-api
Why is this CORS request failing only in Firefox?

I'm implementing CORS with credentials and a preflight request and I'm a bit mystified why the preflight request consistently fails …

firefox cors fetch-api
Relative paths with fetch in Javascript

I was surprised by an experience with relative paths in Javascript today. I’ve boiled down the situation to the …

javascript path relative-path fetch-api
fetch patch request is not allowed

I have two apps one is a react front end and the second one is the rails-api app. I have …

javascript php ruby-on-rails fetch-api
How to get Readable error response from javascript Fetch api?

I am working on Reactjs redux on front-end and Rails api as a back-end. So now i call api with …

javascript reactjs fetch-api
What limitations apply to opaque responses?

Opaque responses are defined as part of the Fetch API, and represent the result of a request made to a …

javascript cors service-worker fetch-api