From b1e7a6fb5333ee13f0d3cd2af910280da19446b7 Mon Sep 17 00:00:00 2001 From: Qiyun Dai Date: Wed, 25 Sep 2024 14:50:50 -0500 Subject: [PATCH] Add the x-api-key to image upload call --- ecc/scripts/esp-controller.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ecc/scripts/esp-controller.js b/ecc/scripts/esp-controller.js index c6db76b7..256f19e3 100644 --- a/ecc/scripts/esp-controller.js +++ b/ecc/scripts/esp-controller.js @@ -100,6 +100,7 @@ export async function uploadImage(file, configs, tracker, imageId = null) { xhr.open(method, url); xhr.setRequestHeader('x-image-alt-text', configs.altText || ''); xhr.setRequestHeader('x-image-kind', configs.type); + xhr.setRequestHeader('x-api-key', 'acom_event_service'); xhr.setRequestHeader('Authorization', `Bearer ${authToken}`); if (tracker) {