title: aws elastic beanstalk / S3 The page was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint
body: <p>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 <strong>Https</strong> deployed Application to <strong>Http</strong> Rest API.
  I keep getting this error:
  <strong>Mixed Content: The page at &quot;https://mywebsite.com&quot; was loaded over HTTPS, but requested an insecure XMLHttpRequest 'http://myendpoint'. This request has been blocked; the content must be served over HTTPS.</strong></p>
  <p>I tried generating my own certificate in my spring boot application it worked locally but once deployed on elastic beanstalk web services doesnt respond.</p>
  <p>any tip on how use https / beanstalk ?</p>