We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d7652ca + 7bbb5ac commit ef82afbCopy full SHA for ef82afb
examples/server/public/index.html.gz
0 Bytes
examples/server/webui/src/main.js
@@ -445,7 +445,7 @@ const mainApp = createApp({
445
method: 'POST',
446
headers: {
447
'Content-Type': 'application/json',
448
- 'Authorization': this.config.apiKey ? `Bearer ${this.config.apiKey}` : undefined,
+ ...(this.config.apiKey ? {'Authorization': `Bearer ${this.config.apiKey}`} : {})
449
},
450
body: JSON.stringify(params),
451
signal: abortController.signal,
0 commit comments