My Audits in Chrome are showing me a net::ERR_EMPTY_RESPONSE because Lighthouse was unable to reliably load the page I requested. Google developers is giving me the suggestion to configure my server (node.js?) to redirect from http to https.
I tried the react module "react-https-redirect", but still not passing the audit. I implemented the module like so:
render() {
return (
<HttpsRedirect>
<App />
</HttpsRedirect>
);
}
What do I have to configure to realise the automatic redirection?
Answer is here you should use react-https-redirect but as the author says there is some security issues with this. if you can configure the server or use nginx as gateway that would be better than using this module.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With