mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Enhancement: more reliable wg-easy widget by custom proxy, use password header (#3966)
This commit is contained in:
@@ -88,6 +88,8 @@ export default async function credentialedProxyHandler(req, res, map) {
|
||||
if (widget.key) {
|
||||
headers.Cookie = `authenticated=${widget.key}`;
|
||||
}
|
||||
} else if (widget.type === "wgeasy") {
|
||||
headers.Authorization = widget.password;
|
||||
} else {
|
||||
headers["X-API-Key"] = `${widget.key}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user