diff --git a/lib/adapters/xhr.js b/lib/adapters/xhr.js index 5575925285..76784f3db0 100644 --- a/lib/adapters/xhr.js +++ b/lib/adapters/xhr.js @@ -212,7 +212,7 @@ module.exports = function xhrAdapter(config) { var protocol = parseProtocol(fullPath); - if (protocol && [ 'http', 'https', 'file' ].indexOf(protocol) === -1) { + if (protocol && [ 'http', 'https', 'file', 'blob' ].indexOf(protocol) === -1) { reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config)); return; }