mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 22:28:48 +00:00
Support extra headers in widgets
This commit is contained in:
parent
a234eeffb1
commit
7cede1318e
2 changed files with 7 additions and 4 deletions
|
@ -55,6 +55,10 @@ export default async function handler(req, res) {
|
|||
req.query.endpoint = `${req.query.endpoint}?${query}`;
|
||||
}
|
||||
|
||||
if (mapping?.headers) {
|
||||
req.extraHeaders = mapping.headers;
|
||||
}
|
||||
|
||||
if (endpointProxy instanceof Function) {
|
||||
return endpointProxy(req, res, map);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue