Skip to content

Commit

Permalink
fix: move to cookie mode (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
ComfortablyCoding authored Aug 1, 2024
1 parent 9247d79 commit 48d0a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/directus/runtime/plugins/directus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineNuxtPlugin((nuxtApp) => {
const directusURL = config.public.directus.rest.baseUrl as string;

const directus = createDirectus<Schema>(directusURL, { globals: { fetch: $fetch } })
.with(authentication('session', { credentials: 'include' }))
.with(authentication('cookie', { credentials: 'include' }))
.with(rest({ credentials: 'include' }));

// ** Live Preview Bits **
Expand Down

0 comments on commit 48d0a76

Please sign in to comment.