Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
setRequestHeader IE9 CORS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 12, 2015
1 parent a136e59 commit ae60fff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/system-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
};
xhr.open("GET", url, true);

xhr.setRequestHeader('Accept', 'application/x-es-module */*');
if (xhr.setRequestHeader)
xhr.setRequestHeader('Accept', 'application/x-es-module */*');

if (doTimeout)
setTimeout(function() {
Expand Down

0 comments on commit ae60fff

Please sign in to comment.