Rdd0u
Hey guys, how do you set a token in your headers in nuxt3.
That would be
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
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
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