Trying to access API from a worker web app. I get CORS reject. I use RUST or Typescript.
How do I access cloudflare API from a program with getting a CORS issue?
5 Replies
The API is designed to not be used directly from a browser so you need to proxy the commands to something else
How do you proxy the requests?
i can setup any proxy if i know where to proxy from
You would have to have an application that you host that supports CORS it could be a worker
I wrote a worker that tries to access the API, but it has a CORS problem. How does a worker access the API?
I wrote a proxy in rust and it works
Can you share you workers code. It should work from worker to cloudflare API.