I have an Angular app deployed to GitHub (https://santhoshvenkateswaran.github.io/aggrow) And a flask API setup with AWS EC2 Machine.
When I try to make a call from my UI to the AWS IP, I get the following error
Mixed Content: The page at 'https://santhoshvenkateswaran.github.io/aggrow/home' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://13.235.82.185:8080/api/train'. This request has been blocked; the content must be served over HTTPS.
The baseURL for the HTTP requests is "http://13.235.82.185:8080/api/train"
Kindly help me fix this. I tried deploying the app on heroku and faced the same issue.