This seems like a CORS issue. In this case, you should use a backend as a proxy to execute the network requests.