Error with obsolette API URL

OpenZeppelin Defender cannot return the ABI of our (upgradable) smart contract on Avalanche.

We opened Console and found that the API URL used is outdated


Here's the link: snowtrace.io/api?module=contract&action=getabi&address=0x38396Cb4dAb10062343df51F7325511305663657

If you go to this URL, it will show

If we change the URL to api.snowtrace.io, the information shows correctly.

Is there any way we or you (Defender) can fix this issue? Thanks and I look forward to the answers.

Hi @AnnieG -

I have a PR up to add snowtrace.io to our CSP so you will not get CORS errors. It should be released next week.

However, the actual call for contracts/proposals is made through the provider injected to the browser via Metamask (or similar), so if it may require updating a config there.