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

Commit 337f631

Browse files
committed
Add module/x-module-loader-module as an explicit content type in XHR Accept header
1 parent a6ee774 commit 337f631

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/system-fetch.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
};
4848
xhr.open("GET", url, true);
4949

50+
xhr.setRequestHeader('Accept', 'module/x-module-loader-module */*');
51+
5052
if (doTimeout)
5153
setTimeout(function() {
5254
xhr.send();

0 commit comments

Comments
 (0)