Does anyone have any idea how this might be done?
Yes, with the WDC running in a browser, you will be affected by CORS. We have a page on this here. Following that, you could standup a simple forwarding proxy with python or node and workaround the CORS issues. That is probably the most straightforward approach for you. HTH