diff --git a/lib/adapters/http.js b/lib/adapters/http.js index d03db3a622..760efc3d0e 100755 --- a/lib/adapters/http.js +++ b/lib/adapters/http.js @@ -183,7 +183,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) { // Parse url const fullPath = buildFullPath(config.baseURL, config.url); - const parsed = new URL(fullPath); + const parsed = new URL(fullPath, 'http://localhost'); const protocol = parsed.protocol || supportedProtocols[0]; if (protocol === 'data:') {