Prestashop和https
我对https有问题。在控制台里我有Prestashop和https,https,prestashop,Https,Prestashop,我对https有问题。在控制台里我有 Mixed Content: The page at 'https://home.pl/pl/' was loaded over HTTPS, but requested an insecure image 'http://home.pl/img/cms/home.png'. This content should also be served over HTTPS. 控制台“显示”解决方案。您应该使用https提供home.png,因此正确的url应该是
Mixed Content: The page at 'https://home.pl/pl/' was loaded over HTTPS, but requested an insecure image 'http://home.pl/img/cms/home.png'. This content should also be served over HTTPS.
控制台“显示”解决方案。您应该使用https提供home.png,因此正确的url应该是https://home.pl/img/cms/home.png
在.tpl中,使用此代码段检查backoffice中的SSL模式是否处于活动状态
比如说
有关链接:
<a href="http{if Tools::usingSecureMode()}s{/if}://mylink.com">My link</a>
对于图像:
<image src="http{if Tools::usingSecureMode()}s{/if}://home.pl/img/cms/home.png">
您对https没有问题,您对混合内容有问题。只需通过https加载所有内容,即可完成任务。