From 8cfc4b0e5f93a8b84b3f02ab28962ce7f7f2d193 Mon Sep 17 00:00:00 2001 From: DigitalBrainJS Date: Thu, 5 May 2022 18:02:11 +0300 Subject: [PATCH] Added `blob` to the list of protocols supported by the browser; --- lib/adapters/xhr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adapters/xhr.js b/lib/adapters/xhr.js index 337b7a015a..c22783f179 100644 --- a/lib/adapters/xhr.js +++ b/lib/adapters/xhr.js @@ -210,7 +210,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; }