mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-03-27 05:11:42 -04:00
Remove headers entirely to avoid XDR error
Even "no headers" is seen as setting headers to IE.
This commit is contained in:
parent
7c0363e99b
commit
c15b6a9681
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ var Api = {
|
|||
// For IE < 10, we must use XDR for cross-domain requests. XDR does not support
|
||||
// custom headers.
|
||||
defaults(opts, {useXDR: true});
|
||||
opts.headers = {};
|
||||
delete opts.headers;
|
||||
}
|
||||
xhr(opts, function (err, res, body) {
|
||||
if (err) log.error(err);
|
||||
|
|
Loading…
Add table
Reference in a new issue