From 0b37f767b159a918b7a8aa77b05778f4a70f915f Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Tue, 5 Oct 2021 17:14:01 -0700 Subject: [PATCH 1/2] Remove hard coded localhost when calling API Signed-off-by: Joshua Li --- .../public/components/report_definitions/delivery/delivery.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboards-reports/public/components/report_definitions/delivery/delivery.tsx b/dashboards-reports/public/components/report_definitions/delivery/delivery.tsx index f8852ad5..ecacdf0f 100644 --- a/dashboards-reports/public/components/report_definitions/delivery/delivery.tsx +++ b/dashboards-reports/public/components/report_definitions/delivery/delivery.tsx @@ -208,7 +208,7 @@ export function ReportDelivery(props: ReportDeliveryProps) { } const checkIfNotificationsPluginIsInstalled = () => { - fetch("http://localhost:5601/api/console/proxy?path=%2F_cat%2Fplugins%3Fv%3Dtrue%26s%3Dcomponent%26h%3Dcomponent&method=GET", { + fetch("../api/console/proxy?path=%2F_cat%2Fplugins%3Fv%3Dtrue%26s%3Dcomponent%26h%3Dcomponent&method=GET", { "credentials": "include", "headers": { "Accept": "text/plain, */*; q=0.01", From 91a6d54fbef63507e36f807ed67679f94537d7b9 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Tue, 5 Oct 2021 17:15:39 -0700 Subject: [PATCH 2/2] Remove referrer Signed-off-by: Joshua Li --- .../public/components/report_definitions/delivery/delivery.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/dashboards-reports/public/components/report_definitions/delivery/delivery.tsx b/dashboards-reports/public/components/report_definitions/delivery/delivery.tsx index ecacdf0f..f35affb7 100644 --- a/dashboards-reports/public/components/report_definitions/delivery/delivery.tsx +++ b/dashboards-reports/public/components/report_definitions/delivery/delivery.tsx @@ -215,7 +215,6 @@ export function ReportDelivery(props: ReportDeliveryProps) { "Accept-Language": "en-US,en;q=0.5", "osd-xsrf": "true" }, - "referrer": "http://localhost:5601/app/dev_tools", "method": "POST", "mode": "cors" })