From 356b166182de33936c8581df1637894f06d9f386 Mon Sep 17 00:00:00 2001 From: Dmitriy Mozgovoy Date: Mon, 9 May 2022 20:27:18 +0300 Subject: [PATCH] Added `blob` to the list of protocols supported by the browser; (#4678) Co-authored-by: Jay --- 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 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; }