|
|
@ -4,7 +4,6 @@ import validateWidgetData from "utils/proxy/validate-widget-data";
|
|
|
|
import { httpProxy } from "utils/proxy/http";
|
|
|
|
import { httpProxy } from "utils/proxy/http";
|
|
|
|
import createLogger from "utils/logger";
|
|
|
|
import createLogger from "utils/logger";
|
|
|
|
import widgets from "widgets/widgets";
|
|
|
|
import widgets from "widgets/widgets";
|
|
|
|
import {importCookieHeader} from "utils/proxy/cookie-jar";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const logger = createLogger("genericProxyHandler");
|
|
|
|
const logger = createLogger("genericProxyHandler");
|
|
|
|
|
|
|
|
|
|
|
@ -35,10 +34,6 @@ export default async function genericProxyHandler(req, res, map) {
|
|
|
|
params.body = req.body;
|
|
|
|
params.body = req.body;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (req.headers.cookie) {
|
|
|
|
|
|
|
|
importCookieHeader(url, req.headers.cookie)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const [status, contentType, data] = await httpProxy(url, params);
|
|
|
|
const [status, contentType, data] = await httpProxy(url, params);
|
|
|
|
|
|
|
|
|
|
|
|
let resultData = data;
|
|
|
|
let resultData = data;
|
|
|
|