self fetching on workers and client sides
I am writing a fetch request that can be called from both the server and client with the following code. I am using Nuxtjs 3.
It works normally in the local develop environment, but when uploaded to Cloudflare worker, Error 522 occurs. I would like to know if you have any information about this.
1 Reply
if use service bindings, Are there any reserved words to describe yourself?
In language, isn't there a variable called this that represents the object itself? I would like to know if there is a word that can be used to bind to the worker itself like that.
Why are you asking?
It doesn't seem to be recognized properly when I do the following:
The code was changed as follows: On the server side, fetch to the bound worker.
It seems there is one last problem left. Worker binding works well, but I'm not sure how to send a request to a specific URL.
it has solved. this codes:
and worker bindings.