Not replying to the author of this post, but more to increase visibility because trying to work around CORS in obsidian took me a while.
Since v0.12.11 it is possible to perform HTTP requests without CORS restrictions by using request().
The documentation doesn’t describe any of its parameters, but does say it’s similar to fetch which is described here
Some examples used in a plug in can be found here
With this piece I was able to finally call the Jira Api to get issue details and replicate the look of a Jira link as shown on a Confluence page using a dynamic react component in Obsidian with a code block, because I wanted up to date ticket information on a dashboard.