Hi there, I have a problem with connecting potris on matic net,
Connecting the potris with the same configuration in the ethereum mainnet or rinkeby works.
I am following the matic docs: Portis | Matic Network | Documentation
Here is my code:
import Portis from '@portis/web3';
import Web3 from 'web3';
const portis = new Portis(
"f97033cf-d0ae-4221-880b-f4cafbacd59b",
"maticTestnet"
);
const web3 = new Web3(portis.provider);
I got the follow error:
main.bd76654d58b5e01d6f1a.js:26 POST https://testnet2.matic.network/ net::ERR_NAME_NOT_RESOLVED
Also using, maticMumbai
const portis = new Portis(
"f97033cf-d0ae-4221-880b-f4cafbacd59b",
"maticMumbai"
);
const web3 = new Web3(portis.provider);
I got the following error:
Access to XMLHttpRequest at 'https://rpc-mumbai.matic.today/' from origin 'https://widget.portis.io' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.
Is there something that I am missing out??