Workern to worker fetch 1042
Just been bamboozeled by this.
I have a FE in tanstack start and a backend in hono.
I have better auth for my auth. In start the better auth instance attempts to do a fetch request to my server worker to get the users session. This errors out with a 1042 and I see in the docs its not allowed.
The solution being using a service binding to connect the worker. However if some libraries are defaulting to fetch for this kind of behaviour what is the best solution? Does anyone have experience with this problem?
I have a FE in tanstack start and a backend in hono.
I have better auth for my auth. In start the better auth instance attempts to do a fetch request to my server worker to get the users session. This errors out with a 1042 and I see in the docs its not allowed.
The solution being using a service binding to connect the worker. However if some libraries are defaulting to fetch for this kind of behaviour what is the best solution? Does anyone have experience with this problem?