mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
feat: add composable for custom client headers
This commit is contained in:
@@ -42,8 +42,8 @@ export async function createContext(event: CompatibilityEvent) {
|
||||
// Will be available as `ctx` in all your resolvers
|
||||
|
||||
// This is just an example of something you'd might want to do in your ctx fn
|
||||
const x = useCookies(event)
|
||||
console.log(x)
|
||||
// const x = useCookies(event)
|
||||
console.log(event.req.headers)
|
||||
|
||||
return {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user