Rdd0u
Rdd0u
NNuxt
Created by dpetrovaliev on 6/3/2024 in #❓・help
403 error code on /api/__session request
Are you using tenants?
4 replies
NNuxt
Created by dpetrovaliev on 6/3/2024 in #❓・help
403 error code on /api/__session request
Hello @dpetrovaliev , are you using Vuefire?
4 replies
NNuxt
Created by stefanpeev on 5/14/2024 in #❓・help
Hey guys, how do you set a token in your headers in nuxt3.
That would be
useFetch('url', {
headers: {
"Authorization" : 'token'
}
})
useFetch('url', {
headers: {
"Authorization" : 'token'
}
})
See the docs here: https://nuxt.com/docs/api/composables/use-fetch#type To keep it DRY, I would suggest creating a customFetch composable that will bake that behaviour in. Check this: https://nuxt.com/docs/examples/advanced/use-custom-fetch-composable
2 replies
NNuxt
Created by Furnaxe on 5/8/2024 in #❓・help
Nuxt Security
Hi @Furnaxe , the error page component takes an error code as an argument. You could use it to customise the error page based on the code you get. https://nuxt.com/docs/guide/directory-structure/error
2 replies
NNuxt
Created by thesivak on 4/23/2024 in #❓・help
nuxt 3 testing examples
Hi @thesivak , that's generally what I use when I am looking for real life examples: https://github.com/search?q=nuxt%2Ftest-utils&type=code
5 replies