ysco Posted June 14, 2014 Share Posted June 14, 2014 (edited) Hello all,i have this piece off code {$.ajax({url:modulepath+"ajax/ajaxCall.php",What is the code to have a secure ssl path to ajaxCall.php ?It is now loaded over httpand it needs to be loaded over https.Thanks.Best regards,ysco.. Edited June 16, 2014 by ysco (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 15, 2014 Share Posted June 15, 2014 use baseDir variable {$.ajax({url:baseDir+"modules/YOURMODULE/ajax/ajaxCall.php"} baseDir contains secured path if someone browse your wesbite with secured protocol. remember that if your ajaxCall contains init library, you have to define there $this->ssl=true; otherwise page will be redirected to nonsecured protocol. Link to comment Share on other sites More sharing options...
ysco Posted June 15, 2014 Author Share Posted June 15, 2014 Hello Vekia. Thanks buddy, will try this when I m home again. Let you know the results. Best regards ysco.. Link to comment Share on other sites More sharing options...
ysco Posted June 16, 2014 Author Share Posted June 16, 2014 Hello Vekia, I have try`t it and that part worked but the module has a lot off more insecure calls to cdn sites that can not be solved that easy. Will contact the developer for a solution to fix the insecure calls. Thanks for your help. Best regards. ysco.. Link to comment Share on other sites More sharing options...
Recommended Posts