mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 22:57:11 -04:00
Added authentication to axios.defaults.proxy
This commit is contained in:
parent
77792a5f7f
commit
d62d5a0460
4 changed files with 15 additions and 5 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue