From 633f1079e833be6b0fe9e6cf559efd477bafa425 Mon Sep 17 00:00:00 2001 From: Joshua Date: Thu, 7 Oct 2021 14:41:05 -0700 Subject: [PATCH] Remove hard coded localhost when calling API (#172) --- public/components/report_definitions/delivery/delivery.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/components/report_definitions/delivery/delivery.tsx b/public/components/report_definitions/delivery/delivery.tsx index f8852ad5..f35affb7 100644 --- a/public/components/report_definitions/delivery/delivery.tsx +++ b/public/components/report_definitions/delivery/delivery.tsx @@ -208,14 +208,13 @@ 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", "Accept-Language": "en-US,en;q=0.5", "osd-xsrf": "true" }, - "referrer": "http://localhost:5601/app/dev_tools", "method": "POST", "mode": "cors" })