2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

Reverting default X-Requested-With header for xhr

for more details see https://remysharp.com/2011/04/21/getting-cors-working
This commit is contained in:
mzabriskie
2015-09-21 13:58:35 -06:00
parent 23abc2a5e4
commit 2936cdce14
2 changed files with 0 additions and 18 deletions
-3
View File
@@ -25,9 +25,6 @@ module.exports = function xhrAdapter(resolve, reject, config) {
config.headers || {}
);
// Indicate that request is being made with XHR
requestHeaders['X-Requested-With'] = 'XMLHttpRequest';
if (utils.isFormData(data)) {
delete requestHeaders['Content-Type']; // Let the browser set it
}