From 746a3774b6e3533052ed11c3310e05c4c98de38f Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 1 Jan 2022 01:14:56 +0000 Subject: [PATCH] :bug: Removes object deconstructing for custom headers --- src/mixins/WidgetMixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixins/WidgetMixin.js b/src/mixins/WidgetMixin.js index 833c8b38..8ae161a8 100644 --- a/src/mixins/WidgetMixin.js +++ b/src/mixins/WidgetMixin.js @@ -65,7 +65,7 @@ const WidgetMixin = { // Request Options const method = 'GET'; const url = this.useProxy ? this.proxyReqEndpoint : endpoint; - const CustomHeaders = options ? { ...JSON.stringify(options) } : null; + const CustomHeaders = options ? JSON.stringify(options) : null; const headers = this.useProxy ? { 'Target-URL': endpoint, CustomHeaders } : CustomHeaders; // Make request