Enhancement: more reliable wg-easy widget by custom proxy, use password header (#3966)

This commit is contained in:
shamoon authored and GitHub committed 2024-09-09 11:40:11 -07:00
1 parent 133d2d6e02
commit 2d0beabe9a
4 files changed
+13 -90

No files matched your search

+2
View File
@@ -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}`;
}