Skip to content

Commit

Permalink
Remove hard coded localhost when calling API (opensearch-project#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuali925 authored Oct 7, 2021
1 parent 1024bed commit 633f107
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/components/report_definitions/delivery/delivery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
})
Expand Down

0 comments on commit 633f107

Please sign in to comment.