Solid-Start error when using fetch/axios/ky to call to external service SSR
Hi I'm new at Solid-Start. Currently, I'd like to call to external API. I try to use all of fetch/axios/ky but all of them returned error.
For detail:
1. If I call API inside onMount() it can work as normal.
2. If I call outside of onMount() like inside a createResouse() like
They all return the error
2 Replies
Tough to tell.
It seems the api is rejecting the request, maybe because the requests are missing an api key or the you need to add the frontend domain (probably localhost:3000) to the list of allowed domains.
Thank you that's right. I've fixed it