solid-start
solid-start copied to clipboard
Fetch failed
Hello all!
I have this code block
export function routeData() {
return createServerData$(
async key => {
const response = await fetch( `http://localhost:9000/some` )
return ( await response.json() )
}
)
}
When visiting the page I get following error

This is what I get in terminal

Tried to fetch with createRouteData but no luck either. I am using Mockoon that is running at port 9000. Doing fetch on client works without problems.
Would appreciate any help. Thanks!