diff --git a/examples/server/public/index.html.gz b/examples/server/public/index.html.gz index 01dd41811d083..6a64915579c39 100644 Binary files a/examples/server/public/index.html.gz and b/examples/server/public/index.html.gz differ diff --git a/examples/server/webui/src/main.js b/examples/server/webui/src/main.js index 2a3021ce98773..997ab0ff5d769 100644 --- a/examples/server/webui/src/main.js +++ b/examples/server/webui/src/main.js @@ -445,7 +445,7 @@ const mainApp = createApp({ method: 'POST', headers: { 'Content-Type': 'application/json', - 'Authorization': this.config.apiKey ? `Bearer ${this.config.apiKey}` : undefined, + ...(this.config.apiKey ? {'Authorization': `Bearer ${this.config.apiKey}`} : {}) }, body: JSON.stringify(params), signal: abortController.signal,