I have deployed an Astro.js framework website. It uses Netlify CMS for updating pages. I have deployed it on Netlify. The admin page is working on my local development box but not on the deployed server.
Looking in the developper settings under the console tab, I receive this error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://identity.netlify.com/v1/netlify-identity-widget.js. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200
Hello @tavifo, since it’s been a while and you have not posted a reply indicating if you have solved the CORS error or not, I visited your admin_login page and it seems you are still getting the CORS error in the Chrome Dev Tools.
Note that in Astro, regular scripts get compiled into modules and that’s why you’re seeing a CORS error. Kindly use the script tag below instead for adding the Netlify Identify Widget to see if it works.