Mark this issue on Github polyfill , especially this comment.
Since the header is X-Requested-Withnot standard, it uses a wrapper that provides some of the missing actions.
If you need more recommendations, check out these lines of shell code:
function headers(options) {
options = options || {}
options.headers = options.headers || {}
options.headers['X-Requested-With'] = 'XMLHttpRequest'
return options
}
source
share