Added authentication to axios.defaults.proxy

This commit is contained in:
SamTV12345 2025-04-08 18:40:00 +02:00 committed by SamTV12345
parent 77792a5f7f
commit d62d5a0460
4 changed files with 15 additions and 5 deletions

View file

@ -42,6 +42,10 @@ if (settings.dumpOnUncleanExit) {
const addProxyToAxios = (url: URL) => {
axios.defaults.proxy = {
host: url.hostname,
auth: {
username: url.username,
password: url.password,
},
port: Number(url.port),
protocol: url.protocol,
}