lionel
lionel
NNuxt
Created by lionel on 11/13/2024 in #❓・help
How can I avoid 401 error with useFetch and http basic auth, when SWR enabled
Hello, I have the newest Nuxt (v3.14.159) and nuxt-security (v2.0.0) packages . When I call useFetch to a server route, in a page, where SWR is enabled, I get a 401 because of the http basic auth. When I manually include the headers in the request it works, but what is the Nuxt/nuxt-security intended way to do this? Thank you and kind regards
19 replies