Https:// - Web server is returning an unknown error


As of today I am getting CORS errors related to missing package.json file. The file seems to be missing, display the following message: Web server is returning an unknown error.

My application uses : <script src="[email protected]/dist/moralis.js"></script>

Access to XMLHttpRequest at '' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.```

does it work with a different package provider?
it could be an issue on unpkg side?

this url works fine for me to access it

Yes that url is working but is not there, and it’s being called within the script.

Is there another official Moralis package provider?

you can use this url

The problem is that package.json url is hard-coded inside moralis.js file that is hosted on unpkg. Also is pointing to the same missing file

I tried installing Moralis-v1 SDK but moralis.js is also pointing to the same missing file on unpkg.

All roads lead to unpkg.

now it looks like this url works

Yep, it’s working again. :tada:

1 Like