java2dev Posted October 13, 2016 Share Posted October 13, 2016 salut, je suis entrain d'utiliser un plugin en localhost ca marche bien, grossomodo de syncronization.mais une fois sur un site de prestashop je recois l'erreur suivante: Mixed content: The page was loaded over HTTPs, but requested an insecure XMLHttpRequest endpoint. This request has been blocked, the content must be served over HTTPs. Link to comment Share on other sites More sharing options...
java2dev Posted October 13, 2016 Author Share Posted October 13, 2016 j'ai ce bout de code je vais qui est en false je le change en true, je test et je vous tiens aucourant s'il y a un probleme. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); Link to comment Share on other sites More sharing options...
java2dev Posted October 14, 2016 Author Share Posted October 14, 2016 j'ai changè //$base_url = Context::getContext()->shop->getBaseURL(); par celle-ci et ca marche$base_url = Tools::getHttpHost(true).__PS_BASE_URI__; 1 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