I just span a server and installed the fiat on-ramp plugin but I am running into a CORS policy error when interacting with the button.
<button class="btn btn-primary col-3" id="btn-login" onclick="iframefiat()">Buy/Sell crypto & Fiat</button>
<iframe id="myIframe" src="" width="350" height="650" style="display:none"></iframe>
<br><script>
Moralis.start({ serverUrl: 'https://cablkji81xn6.usemoralis.com:2053/server', appId: 'JdzvjWbMMN3gkrqTeddEgUxT7b3lN0yR2RhCtnsr' });
(async function(){
Moralis.initPlugins();
})();
function buycrypto(){
Moralis.Plugins.fiat.buy();
}
async function iframefiat(){
let response = await Moralis.Plugins.fiat.buy({}, {disableTriggers: true});
console.log(response)
document.getElementById('myIframe').style.display = 'block';
document.getElementById('myIframe').src = response.data;
}
</script>```