PRammer Posted April 17, 2015 Share Posted April 17, 2015 Здравствуйте! Столкнулся с проблемой работы модуля favoriteproducts – не добавляет любимые Консоль показывает следующее Mixed Content: The page at 'https://domain.od.ua/losiny/2509-legginsy-kapri-zhenskie-905.html' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://domain.od.ua/module/favoriteproducts/actions?process=add&rand=1429271834095'. This content should also be served over HTTPS. XMLHttpRequest cannot load http://domain.od.ua/module/favoriteproducts/actions?process=add&rand=1429271834095. The request was redirected to 'https://domain.od.ua/module/favoriteproducts/actions?process=add&rand=1429271834095', which is disallowed for cross-origin requests that require preflight. Выставлены следующие настройки SSL В .htaccess ничего не прописывал. Прилагаю копию модуля. favoriteproducts.zip Подскажите, что не так??? Link to comment Share on other sites More sharing options...
Ronaldo Perez Posted April 18, 2015 Share Posted April 18, 2015 /views/templates/hook/favoriteproducts-header.tpl var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], true)}'; var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}'; var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], false)}'; var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], false)}'; изменить на var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], true)}'; var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}'; и провести беседу с тем кто добавил 2 последние строки, нафига там var 1 Link to comment Share on other sites More sharing options...
PRammer Posted April 18, 2015 Author Share Posted April 18, 2015 /views/templates/hook/favoriteproducts-header.tpl var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], true)}'; var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}'; var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], false)}'; var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], false)}'; изменить на var favorite_products_url_add = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'add'], true)}'; var favorite_products_url_remove = '{$link->getModuleLink('favoriteproducts', 'actions', ['process' => 'remove'], true)}'; и провести беседу с тем кто добавил 2 последние строки, нафига там var Огромное Вам спасибо! Заработало. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now