In my case, this issue occurred in the production environment, but it was resolved by simply changing the API URL from HTTP to HTTPS. The development environment works fine with HTTP.