Mixed content when i activate SSL #8826
Comments
@kabengwa these kinds of questions should go to the community forum. Anyway, are you using Contao 3 or 4? |
Sorry about that am new here, i have updated my issue and added the php and contao versions. |
This is probably a duplicate of contao/core-bundle#895 You need to add your proxy's IP like this: Request::setTrustedProxies(['…']); within the // Handle the request
$request = Request::createFromGlobals(); |
it doesnt seem to be working for me i guess the issue is with the ip address that i am using. with the setup that i have in docker i had used the ipaddress of the server that hosts the docker container because i have an nginx proxy infront of all the other containers .. is that the right one to use? |
i have got it... its the ipaddress of the container that holds the proxy. |
No problem. Keep these comments in mind though: contao/core-bundle#895 (comment), contao/core-bundle#895 (comment) |
I have a reverse proxy for docker using jwilder/nginx-proxy and jrcs/letsencrypt-nginx-proxy-companion image for ssl with lets encrypt. how ever i am getting errors of mixed content in the contao site
(Mixed Content: The page at 'https://my-domain/contao' was loaded over HTTPS, but requested an insecure stylesheet 'http://my-domian/system/themes/flexible/fonts.css'. This request has been blocked; the content must be served over HTTPS.)
i cannot seem to find a solution to this.. any help is welcome. the back end is totally messed with no css because it is not loading since its trying to access the sheets with the wrong url of http:// . How can i solve this problem. Am very new to contao.
I am using contao 4.4.7, PHP 7.1.9
The text was updated successfully, but these errors were encountered: