Hey, I added the fiat onramp plugin per Ivan’s tutorial, but when I try running it I get the following errors:
Since I’m not writing the fetch request manually I can’t specify ‘no-corse’ in the request.
What should I do?
Here is my code:
(function () {
Moralis.initPlugins();
})();
async function buyCrypto() {
const response = await Moralis.Plugins.fiat.buy({}, {disableTriggers: true});
iframeRef.current.src = await response.data;
setShowIframe(true);
}
Thank you.