Hi everyone,
I’ve been using Ionicons 7.1.0 in my project without any issues, and everything was working fine until recently. I’ve been including the following script tags in my index.html to load Ionicons from unpkg.com:
<script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>
However, now I am encountering the following errors:
-Error 1 (CORS-related):
Access to script at 'https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js' from origin 'https://mywebpage' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
-Error 2 (500 Internal Server Error):
GET https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js net::ERR_FAILED 500 (Internal Server Error)
- Has anyone else experienced similar issues with Ionicons 7.1.0 from unpkg.com recently?
- Could this be a temporary issue with the CDN, or is there something I should check in my setup?
- Are there any alternative CDNs or solutions I can try for this version, or should I downgrade to an earlier version of Ionicons?
Any help or insights would be greatly appreciated!
Thanks!
4 posts - 3 participants