We run OctoberCMS behind a proxy that performs HTTPS offloading. This means that traffic between the browser and the proxy goes over HTTPS, and between the proxy and our web server over HTTP. Because our server runs over HTTP, theme
and media
pipes references are generated as http://…
However, because the pages are loaded via HTTPS, the browser refuses to load HTTP references (Mixed Content error).
The solution is not to use theme and media pipes, but this is not very practical. Is there a way to tell |theme
and |media
Twig pipes which protocol to generate for the URI? Or to have a pipes generating only the relative path reference without the domain and the port?
BTW, this error is in the OctoberCMS documentation too. Website address is https://octobercms.com
and javascript reference is http://octobercms.com/themes/website/js/menu.js
.
If the browser loads the content via https, it will never load the resource over http. The example in the documentation is wrong.