Jump to content

[1.5.x] Ajax cart brakes SSL pages


GS VISION

Recommended Posts

I enabled AJAX cart on SSL enabled eshop but the secured pages say they load insecured content. The first step was to enable CORS by adding this to .htaccess file: 

# ----------------------------------------------------------------------
# Cross-domain AJAX requests
# ----------------------------------------------------------------------
# Serve cross-domain Ajax requests, disabled by default.
# enable-cors.org
# code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>

But now I struggle with https://myshop.com/?controller=cart&ajax=true redirecting to http page and still cannot get the SSL to get verified. 

 

P.S: The whole problem comes from what is loaded by https://myshop.com/?controller=cart&ajax=true. There are links to the products there which are http and should stay that way as product pages are not meant to be loaded with https because they will be slowed down.

Link to comment
Share on other sites

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...