Server directory API call will only work with 127.0.0.1
Making an API call to GraphQL only works with a hardcoded IP and port number.
CMS is using ddev to run the docker container. If we set the URL to
https://[sitedomain].ddev.site/api
or http://localhost:[portnumber]/api
we cannot connect to the API through the server directory. Making the call client side works without issue. Only error from Nuxt is fetch failed
. Below is the server API call using Apollo Client, but useFetch gives the same errors.
1 Reply
Bumping this