Access to XMLHttpRequest at 'https://secopi.site/LAND/76' from origin 'https://mydomain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

I get this error when my app is in production - however it works fine on localhost. Not too sure why this is. I can fetch collections but it becomes a problem when I fetch nfts for user… Like I said it works fine on localhost. Also not sure why it says from my domain instead of the moralis server “https://…moralis.io:2053/server”

it looks like that secopi site has some CORS whitelisting and allows only specific domains to make requests

Why is it working on localhost?

Its preventing me from fetching nfts for a user

Its taking about 5 minutes to pull up nfts that have nothing to do with secopi and it seems the errors are whats slowing the site down

that website may allow localhost in the list of allowed websites

I see - are there any solutions? I don’t even need those secopi nfts on the site - How would I prevent them altogether

People get airdropped random nfts all the time so most wallets will receive this error… Regardless of whether they want those nfts to pull up on the site.

What do you need from that link? How do you use it on your site?

I don’t need anything from that link… I called get nfts and one of the nfts owned by the wallet is hosted there I assume… So now its slowing down my whole site off an nft I would filter in any case

after you get the list of nfts, you try to show their images? or what happens?