How to auto-upgrade to HTTPS (aka avoid mixed content)?

I have moved this blog to its new home here: https://akshayranganath.github.io/csp-to-avoid-mixed-content/.

Advertisements