mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-17 10:19:49 +00:00
Enhancement: more reliable wg-easy widget by custom proxy, use password header (#3966)
This commit is contained in:
parent
133d2d6e02
commit
2d0beabe9a
4 changed files with 13 additions and 90 deletions
|
@ -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}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue