Whitelist Domain on Dashboard

Hello,
I tried to whitelist my domain on the dashboard but still got an error message in my webapp.

OpenLogin - RPC Error: could not validate redirect, please whitelist your domain: https://gymwallet.co for provided clientId ... at https://dashboard.web3auth.io.
    Also, this project is on mainnet network. Please ensure the the used Client ID belongs to this network. 

image

image

my configuration looks like this:

const web3auth = new Web3Auth({
  web3AuthNetwork: 'testnet',
  clientId: clientId,
  chainConfig: {
    chainNamespace: CHAIN_NAMESPACES.EIP155,
    chainId: `0x${network.toString(16)}`,
    rpcTarget: url,
  },
  uiConfig: {
    appLogo: '/community/images/gym-wallet-white.svg',
    defaultLanguage: 'en',
    theme: 'dark',
    loginMethodsOrder: [
      'google',
      'apple',
      'facebook',
      'twitter',
      'github',
      'email_passwordless',
    ],
  },
  storageKey: 'local',
  authMode: 'DAPP',
});

I'm using infura RPC and want to try it out on testnet first.
Like this with localhost, all works fine, but not on my domain.
Help would be appreciated.



Originally posted by: sebastian-baier

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1143

I have the same issue. Also when using a Mainnet Web3 project



Originally posted by: Ni3l55

image



Originally posted by: thefallenmerc
const web3Auth = new Web3Auth({
    clientId,
    chainConfig: {
      chainNamespace: 'eip155',
      chainId: '0x13881', // hex of 80001, polygon testnet
      rpcTarget: MUMBAI_PROVIDER_URL,
      displayName: 'Polygon Testnet',
      blockExplorer: 'https://mumbai.polygonscan.com/',
      ticker: 'MATIC',
      tickerName: 'Matic',
    },
    uiConfig: {
      theme: 'light',
    },
    web3AuthNetwork: 'testnet', // Adding this line fixes the issue for me!!
  });


Originally posted by: hanpanpan200

Even I am facing this issue, do I really have to switch to mainnet to solve this?



Originally posted by: Mehul0011

Thanks @sebastian-baier @Ni3l55

That worked, testnet isnt working for some reason on urls other than localhost.

Also web3AuthNetwork: "mainnet" should be configured to make it work.

Now it is accessible from the whitelisted URLs



Originally posted by: thefallenmerc