mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
feat: allow client-based web tokens
This commit is contained in:
@ -42,7 +42,7 @@ export const $dropFetch: DropFetch = async (request, opts) => {
|
||||
return object;
|
||||
}
|
||||
|
||||
const headers = useRequestHeaders(["cookie"]);
|
||||
const headers = useRequestHeaders(["cookie", "authorization"]);
|
||||
const data = await $fetch(request, {
|
||||
...opts,
|
||||
headers: { ...opts?.headers, ...headers },
|
||||
|
||||
Reference in New Issue
Block a user