cancel
Showing results for 
Search instead for 
Did you mean: 

Errors, switching to SSL. Insecure endpoint

Errors, switching to SSL. Insecure endpoint

I am trying to switch to ssl for our website, but i am getting the following error, it is preventing the javascript from working and not adding to cart. 

 

Mixed Content: The page at 'https://www.site.com/product' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://www.site.com/checkout/cart/add/uenc/aHR0cDovL3d3dy5oZWFydGhpamFiLmNvbS9wdXJwbGUtbWF4aS1wbGFpb... This endpoint should be made available over a secure connection.

 

how can i make this a secure url?

 

i have no idea where to locate any file to edit this. 

2 REPLIES

Re: Errors, switching to SSL. Insecure endpoint

Why don't you make your entire secure

Magento Moderator since 2009
Keep Calm and Clear Cache!

Re: Errors, switching to SSL. Insecure endpoint

This will be caused by elements on the page being called with http:// rather than https:// - You probably have some hardcoded links in your code somewhere.

if you use

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);

that will automatically swap between secure and non secure.

Finding what is being served as non secure can be a pain but you can normally find the offending items by using Firebug (Firefox plugin) or try here: https://www.whynopadlock.com/