I have a React app using create-react-app running on an EC2 and I configured my Cloudflare domain to point to it, everything was working fine - I can access the app both through the IPv4 and through the domain. But then I changed my React app to use https instead of http, and I can no longer access it through the domain - but accessing it through the IPv4 works just fine as before.
What might be the problem here?