Error loading moralis.js (CORS errors for package.json)

When trying to load moralis.js, it takes a very long time to load (2-3 minutes). It used to work fine a few days ago. After it loads, I get the following error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.unpkg.com/moralis/package.json. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 520.
bout

Do you know how to fix this?

Hi @sidiropo

What do you mean by “load moralis.js”. How are you doing this?

that should have been an intermitted error when that domains didn’t work and that is why you saw CORS errors, if you have latest Moralis SDK version then that error should not block your website and only see that error in your browser console

Everything seems to be back to normal now. Thank you for your reply.