Jump to content

<Solved>What variable to use for ssl..


Recommended Posts

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 httpand it needs to be loaded over https.

Thanks.

Best regards,

ysco..

Edited by ysco (see edit history)
Link to comment
Share on other sites

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

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

×
×
  • Create New...