The problem is that Axios doesn't set the Authorization header in the requests after login. I worked around this issue by using the setToken helper in the client side, but this doesn't help with the requests made on the server side. How can I solve this issue?
I didn't have this issue with local strategy. I also tried setting credentials: true in the axios configuration but it didn't help.
Hi. I have a NuxtJS project that is running on SSR mode and the auth module configuration is like this:
The problem is that Axios doesn't set the Authorization header in the requests after login. I worked around this issue by using the setToken helper in the client side, but this doesn't help with the requests made on the server side. How can I solve this issue?
I didn't have this issue with local strategy. I also tried setting
credentials: true
in the axios configuration but it didn't help.