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 ‘‘ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘‘. This request has been blocked; the content must be served over HTTPS.

i have tried many times to solve this problem.


Source: New feed
Source Url HTTPS communication with EC2 Instance