Support extra headers in widgets
This commit is contained in:
1 parent
a234eeffb1
commit
7cede1318e
2 files changed
+7
-4
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user