mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 23:08:48 +00:00
Change cloudflare widget to use api tokens
This commit is contained in:
parent
86383e5dce
commit
e9790e5677
1 changed files with 1 additions and 2 deletions
|
@ -44,8 +44,7 @@ export default async function credentialedProxyHandler(req, res, map) {
|
||||||
} else if (widget.type === "miniflux") {
|
} else if (widget.type === "miniflux") {
|
||||||
headers["X-Auth-Token"] = `${widget.key}`;
|
headers["X-Auth-Token"] = `${widget.key}`;
|
||||||
} else if (widget.type === "cloudflared") {
|
} else if (widget.type === "cloudflared") {
|
||||||
headers["X-Auth-Email"] = `${widget.email}`;
|
headers.Authorization = `Bearer ${widget.key}`;
|
||||||
headers["X-Auth-Key"] = `${widget.key}`;
|
|
||||||
} else if (widget.type === "pterodactyl") {
|
} else if (widget.type === "pterodactyl") {
|
||||||
headers.Authorization = `Bearer ${widget.key}`;
|
headers.Authorization = `Bearer ${widget.key}`;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue