Adds proxying functionality to fix widget CORS errors (#391)

This commit is contained in:
Alicia Sykes
2021-12-30 21:17:25 +00:00
parent 312450a898
commit 25fa6ebae8
2 changed files with 37 additions and 1 deletions

View File

@@ -319,7 +319,10 @@ export default {
},
/* Returns users specified widget options, or empty object */
widgetOptions() {
return this.widget.options || {};
const options = this.widget.options || {};
const useProxy = !!this.widget.useProxy;
const updateInterval = this.widget.updateInterval || 0;
return { useProxy, updateInterval, ...options };
},
/* A unique string to reference the widget by */
widgetRef() {