From 895aae5b52ade4615e71c3e7cbb52dd601149e5f Mon Sep 17 00:00:00 2001 From: Aaron Caldwell Date: Mon, 30 Mar 2020 10:07:28 -0600 Subject: [PATCH] Add fetchFunction binding appropriate version of fetch for ems client --- src/legacy/ui/public/vis/map/service_settings.js | 1 + x-pack/legacy/plugins/maps/server/routes.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/legacy/ui/public/vis/map/service_settings.js b/src/legacy/ui/public/vis/map/service_settings.js index 9f3d21831e3da..d26730266cd57 100644 --- a/src/legacy/ui/public/vis/map/service_settings.js +++ b/src/legacy/ui/public/vis/map/service_settings.js @@ -53,6 +53,7 @@ uiModules tileApiUrl: mapConfig.emsTileApiUrl, htmlSanitizer: $sanitize, landingPageUrl: mapConfig.emsLandingPageUrl, + fetchFunction: fetch, }); } diff --git a/x-pack/legacy/plugins/maps/server/routes.js b/x-pack/legacy/plugins/maps/server/routes.js index 6aacfdc41aeea..20e022001577a 100644 --- a/x-pack/legacy/plugins/maps/server/routes.js +++ b/x-pack/legacy/plugins/maps/server/routes.js @@ -44,6 +44,7 @@ export function initRoutes(server, licenseUid) { fileApiUrl: mapConfig.emsFileApiUrl, tileApiUrl: mapConfig.emsTileApiUrl, landingPageUrl: mapConfig.emsLandingPageUrl, + fetchFunction: fetch, }); emsClient.addQueryParams({ license: licenseUid }); } else {