Fetch(url) support is not in IE11 but it is in IE Edge. So how to use it in IE11.
Categories
(developer.mozilla.org Graveyard :: API, enhancement)
Tracking
(Not tracked)
People
(Reporter: vikas.verma787, Unassigned)
Details
(Whiteboard: [specification][type:bug])
What did you do?
fetch(baseLayer.capabilities.url).then(function(response){
return response.text();
})
What happened?
This peace of code is working fine with IE edge, firefox but it doesn't work in IE11. So please suggest how to make it work for IE11
What should have happened?
It should working in IE11
Is there anything else we should know?
Comment 1•7 years ago
|
||
Content issue. Needs to move to mdn/sprints on GitHub.
Comment 2•7 years ago
|
||
IE11 does not support the Fetch API:
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Browser_compatibility
You may be interested in a polyfill:
https://github.com/github/fetch
https://www.npmjs.com/package/isomorphic-fetch
Stack Overflow is a better resource for asking programming questions. You'll get an answer faster, and someone else may have already answered the question.
https://stackoverflow.com/search?q=fetch+ie11
https://stackoverflow.com/questions/54137532/how-to-fix-fetch-is-undefined-in-ie11
Updated•6 years ago
|
Description
•