Zeeeth
Explore posts from serversHow to password protect a site?
With nuxt Security module you are able to add basic auth https://nuxt-security.vercel.app/documentation/middleware/basic-auth
3 replies
Fresh Nuxt3 installation throws Content Security Policy error
take a look at the deployment docs, that should solve your issues. dev is only for local environment
https://nuxt.com/docs/getting-started/deployment
8 replies
Fresh Nuxt3 installation throws Content Security Policy error
I think since it's in server environment it is a bit hard for anyone to be able to help since a reproduction wont be possible. Could you provide some more information about the deployment process? Maybe a step by step how you deploy it, start it and so on. What server environment? What provider?
8 replies
Problem with Nuxt3 and Google Adsense
I think you should take a look at https://scripts.nuxt.com/ and the Adsense integration. Its not 100% tested according to the docs, but maybe it works for you?
2 replies
[useFetch] Component is already mounted, please use $fetch instead (in middleware)
i also have separated this into two different middlewares:
* 10.auth.global.ts
* 20.user.global.ts
the auth-middleware handle the authentication and user-middleware make sure the userStore is populated with the current user if the user is authenticated
10 replies
[useFetch] Component is already mounted, please use $fetch instead (in middleware)
Im sorry you havn't gotten any real help.
I do almost the same thing that you do, but i do not use useFetch in my middleware, but $fetch as stated by the warning. What i do to avoid the multi-call is to store the user in a store. You may use the useStore or some other store manager. That way, you can check if the user is already fetched, end if not refresh the user into your store
10 replies