Using the same URL disregarding the protocol (http/https)
If you are running your development on HTTP but testing, QA and production on HTTPS you might have stumbled on
Do you want to view only the web page content that was delivered securely?
The culprit might be your site loading stuff through HTTP while the site is run through HTTPS; the browser doesn’t like that.
Instead of rewriting everything to HTTPS or create a deploy transformation to have different versions in dev, test and the rest just abandon the protocol.