'After installing ssl certificate, axios http requests are failing on react and express webapp

After I installed an ssl certificate on my ubunto server (nginx) using let's encrypt and certbot, all http requests are failing with this error :

 Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '<URL>'. This request has been blocked; the content must be served over HTTPS.

I am using react js as frontend and express js as back end routing. Please any help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source