You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm not sure if this is a bug, but if not, I need some help understanding what's happening. I want to make my API endpoint relative because I don't have a static hostname on my devices, and it can change depending on the IP assigned to the device.
When proxying through Nitro with host: '/api/gql' (calling the API via frontend proxying), I receive responses in Insomnia. This leads me to believe that such an approach works.
However, when I try to use nuxt-graphql-client on the frontend, I don't see any requests in the browser at all.
In the same scenario as point 2, but using host: 'http://192.168.1.10:4000/api/gql' (hardcoding the backend's IP and port), everything works fine.
Expected behaviour
I expect relative paths to work the same way as full paths.
Thank you!
Reproduction
No response
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Describe the bug
Hi, I'm not sure if this is a bug, but if not, I need some help understanding what's happening. I want to make my API endpoint relative because I don't have a static hostname on my devices, and it can change depending on the IP assigned to the device.
host: '/api/gql'
(calling the API via frontend proxying), I receive responses in Insomnia. This leads me to believe that such an approach works.nuxt-graphql-client
on the frontend, I don't see any requests in the browser at all.host: 'http://192.168.1.10:4000/api/gql'
(hardcoding the backend's IP and port), everything works fine.Expected behaviour
I expect relative paths to work the same way as full paths.
Thank you!
Reproduction
No response
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: