Return API Data to Thrid-Party iframe Dashboard via Cloudflare Worker
❓OtherWorkers
I am new relatively new to full-stack web development, and I am trying to understand the process of pulling in third-party (Everflow) API data and pushing that data via a Cloudflare worker back to an Everflow iframe dashboard. What I have accomplished: via my worker, I have received the API data, filtered the data, and displayed the data on a subdomain page (HTML in the browser...both locally and live app deployment https://afrofiliate-api-dev.rashad-b69.workers.dev/).
The next part is getting this json data to the iframe dashboard on Everflow. I don't quite understand the process as far as using the worker almost as an API itself. What I think I know: * The iframe should contain a script that fetches from the sub domain * When the Cloudflare worker receives the request, CORS must be properly configured on the server, which also includes a preflight, to return the API data * The client script in the iframe can elegantly handle the returned json data
Are there any high- or low-level key considerations that I have not mentioned that I should be aware of?