Jump to content

need https active for a single script called via ajax when not all the shop is ssl secured.


Recommended Posts

Hi, the js that handles the confirmation page of the paypal module makes an ajax call for /modules/paypal/integral_evolution/confirm.php from the last step of the cart that is secured with ssl, and even if i manually change the url of the file in the js adding "https" to it, the script is reached but ps redirect the link call to simple "http" cause it don't consider the path of the module to be secured. That results in a cross site scripting warning telling me that the page are trying to display insecure content, so the ajax call fails and the user is not redirect to the confirmation order page after completed the payment.

As a workaround I configured ssl for the whole site and everything works fine apart the social buttons module that i use on the product pages.

I know that ssl wont slow down the pages that much as many people say, but I think that it's just not needed in the most parts of the site, and I would like to tell prestashop (configured for ssl as default) to use ssl even for that link used in the ajax call without redirecting me to the simple "http" url. Any hint on how to do that? thank ya'll.

Link to comment
Share on other sites

×
×
  • Create New...