Closed Bug 1528877 Opened 7 years ago Closed 7 years ago

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)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

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?

Content issue. Needs to move to mdn/sprints on GitHub.

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

Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.