How to get headers of the response from fetch
问题 I am using fetch on chrome Version 52.0.2743.82 (64-bit). I want to get all the headers in the response. Following snippet only return content-type but if you peek into chrome dev tools it shows many other response headers. How to get other headers from fetch. fetch('https://httpbin.org/get') .then(response => { const headers = response.headers.entries(); let header = headers.next(); while (!header.done){ console.log(headers.value); header = header.next(); } }) I tried polyfilling(manually