I have a Spring boot application deployed using AWS Elastic Beanstalk, im using S3 bucket for my angular app. I have generated certifacate using aws certifacate manager and created CloudFront Distribution so my angular app is loaded on https. The problem is I am calling a rest API from Https deployed Application to Http Rest API. I keep getting this error: Mixed Content: The page at "https://mywebsite.com" was loaded over HTTPS, but requested an insecure XMLHttpRequest 'http://myendpoint'. This request has been blocked; the content must be served over HTTPS.
I tried generating my own certificate in my spring boot application it worked locally but once deployed on elastic beanstalk web services doesnt respond.
any tip on how use https / beanstalk ?