简体   繁体   中英

HTTPS communication with EC2 Instance

I have my java spring project running successfully on AWS EC2 instance uploaded via elastic bean stalk but its endpoint is of the form http://........... Now i have uploaded my angular project on firebase.

I could have uploaded it on AWS itself but it requires geolocation() which requires HTTPS connection. when i connect my angular app to aws instance via endpoint it shows

Mixed Content: The page at ' https://aspertime-a3b60.firebaseapp.com/ ' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ' http://aspertime-env.x2enfd8jmj.ap-south1.elasticbeanstalk.com/employee/login?username=123&password=123 '. This request has been blocked; the content must be served over HTTPS.

i have tried many times to solve this problem.

    -

So as we discussed in the comment, follow these steps

  • Create a Certificate from AWS ACM
  • Verify the certificate by adding an entry to your DNS provider
  • Create Load balancer with https listener
  • Place Load balancer on the top of Elastic beanstalk
  • Update web-app to point New TLS endpoint

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM