When you work with Ajax, this problem become important and you need to get it right way. Otherwise your Ajax request wont work on secure mode. So here here is how you will solve this problem in your custom code in correct Magento programming practice if (Mage::app()->getStore()->isCurrentlySecure()) { //secure mode …