const Tezos = new TezosToolkit('https://mainnet.smartpy.io');
const network = {
    type: 'mainnet',
    rpcUrl: 'https://mainnet.smartpy.io'

This is what I've been using to hook up Taquito, has been working fine for weeks, but yesterday I started getting CORS errors on the normalized endpoint


Access to XMLHttpRequest at 'https://mainnet.smartpy.io/chains/main/blocks/head/context/contracts/KT1HbQepzV1nVGg8QVznG7z4RcHseD5kwqBn/script/normalized' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Does anyone have any idea what's going on there?

I've changed the mainnet to https://mainnet.api.tez.ie which seems to have fixed the issue for now. Would like to know if there's anything I've done wrong that might have caused the issue.

1 Answer 1


There was a problem on SmartPy side.

Is this working now?

  • Yeah, can confirm is now working again, cheers! Commented Dec 3, 2021 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.