mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
* fix(sec): cve-2024-39338 (#6539) * fix(sec): fix test
This commit is contained in:
@@ -229,7 +229,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
|
||||
|
||||
// Parse url
|
||||
const fullPath = buildFullPath(config.baseURL, config.url);
|
||||
const parsed = new URL(fullPath, 'http://localhost');
|
||||
const parsed = new URL(fullPath, utils.hasBrowserEnv ? platform.origin : undefined);
|
||||
const protocol = parsed.protocol || supportedProtocols[0];
|
||||
|
||||
if (protocol === 'data:') {
|
||||
|
||||
Reference in New Issue
Block a user