CORS issue with Cloud functions?

Hi, I am intermittently getting CORs issues with cloud functions.
Access to XMLHttpRequest at ‘…’ from origin ‘http://localhost’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

It is not consistent, but happens about 25% of the time on the exact same call.

server: 0.0.274.

Any thoughts or help would be appreciated. Im guessing since its intermittent that its a cloud server issue ? But let me know otherwise.
Ive seen similar CORs issues on this forum, but no real info as to what the cause or resolution is ?


Could you share name of the cloud function you call?

sure, its a function i wrote called ‘GetNFTImageFromMetaData’

I checked your server logs and I found that at the same second you call the same function GetNFTImageFromMetaData several times

So it just blocks requests from you because of spam.

thats intentional, i call it in a loop passing different parameters to populate the front end.
I didnt know that we could only call a cloud function once. That doesnt make cloud functions that helpful to use.

Hello, I also use cloud functions to call for cors api just like the moralis tutorial

would it help if I upgrade to pro subscription? or would it still consider as spam?