Skip to content

Commit

Permalink
fix: pass global headers to server-side request
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Nov 28, 2022
1 parent d4fba09 commit 8d0abb3
Show file tree
Hide file tree
Showing 5 changed files with 413 additions and 422 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,7 @@ export default defineNuxtConfig({
apiParty: {
headers: {
'Custom-Api-Header': 'foo',
'Authorization': Buffer
.from(`${username}:${password}`)
.toString('base64')
'Authorization': `Basic ${Buffer.from(`${username}:${password}`).toString('base64')}`
}
}
})
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
"scule": "^1.0.0"
},
"devDependencies": {
"@antfu/eslint-config": "^0.30.1",
"@antfu/eslint-config": "^0.31.0",
"@nuxt/module-builder": "^0.2.1",
"bumpp": "^8.2.1",
"eslint": "^8.27.0",
"eslint": "^8.28.0",
"nuxt": "^3.0.0",
"nuxt-api-party": "workspace:*",
"typescript": "^4.9.3",
Expand Down
Loading

0 comments on commit 8d0abb3

Please sign in to comment.