It seems like your server doesn’t support CORS (Cross-Origin Resource Sharing (CORS) - HTTP | MDN), at least not from localhost (or 127.0.0.1). You should setup the server accordingly or move to a different one.
That depends on your server, we can’t quite help with it. It depends on your host. try a different host or a cloud service that supports CORS settings.
Thank you very much !