Use 127.0.0.1 instead of localhost for vault's http requests. (Fix https://github.com/btcpayserver/BTCPayServer.Vault/issues/9#issuecomment-559858955)

This commit is contained in:
nicolas.dorier 2019-11-30 23:34:47 +09:00
parent fa61c2bcdd
commit b8288f1efa
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -35,7 +35,7 @@
}
};
request.overrideMimeType("text/plain");
request.open('POST', 'http://localhost:65092/hwi-bridge/v1');
request.open('POST', 'http://127.0.0.1:65092/hwi-bridge/v1');
request.send(JSON.stringify(jsonObject));
}
else {
@ -87,7 +87,7 @@
}
};
request.overrideMimeType("text/plain");
request.open('GET', 'http://localhost:65092/hwi-bridge/v1/request-permission');
request.open('GET', 'http://127.0.0.1:65092/hwi-bridge/v1/request-permission');
request.send();
});
}