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

Commit ae60fff

Browse files
committed
setRequestHeader IE9 CORS fix
1 parent a136e59 commit ae60fff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/system-fetch.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
};
4141
xhr.open("GET", url, true);
4242

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

4546
if (doTimeout)
4647
setTimeout(function() {

0 commit comments

Comments
 (0)