Fetch + External API issue
Hello,
I'm developing a front-end under nuxt and an api under AdonisJS. I have a /api/v1/me route that returns the information for a user associated with a bearer token.
When I call the fetch method, I can see in my browser that it responds with a 200, but Nuxt tells me a 404
I think it's because I have a Caddy server with two reverse proxies, /api/v1 is redirected to my AdonisJS app and the rest to Nuxt. Here's my current middleware:
4 Replies
The weird thing is that if I put a console.log after
store.setUser(user);
, it displays fine but I still get the triggered catch... Is it possible that the nuxt server is trying to do the fetch since I have SSR enabled?

(This is the nuxt console, not browser console)
(fixed)