I've deployed a ReactJS application in AWS Amplify. That ReactJS app calling a Spring boot service that runs in same AWS EC2 instance. I am getting the following error from ReactJS App that calls EC2 instance.
Mixed Content: The page at 'master.dw1qlg7lxrxk.amplifyapp.com' was loaded over HTTPS, but requested an insecure resource 'ec2-3-145-165-206.us-east-2.compute.amazonaws.com:8080/…'. This request has been blocked; the content must be served over HTTPS.
My ReactJS app is calling in https
to ec2 instance (where spring boot is running), but spring boot in ec2 instance runs in http
. I think, that's where this error comes. I need to how to fix this to work this together in feasible way.