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.

    -

Source: New feed
Source Url HTTPS communication with EC2 Instance