Jump to content

Form submission prompts encryption message on select browsers


Go to solution Solved by frshjb373,

Recommended Posts

I'm not sure if this is the best place to post this issue, but any help is much appreciated.

 

We have a form on our Magento site, that when submitted on Firefox, prompts the following security warning:

 

Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.

Are you sure you want to continue sending this information?

 

I have contacted our hosting and they explained it's an issue with the code, "you would typically getting a notice like that if you're calling assets over an http on a page that is using https."

 

If anyone has any insights as to how to avoid this from a development perspective, please let me know. Thank you in advance for the help!

 

 

apparently, your form page is via https://somedomain/somepage.php, but the action attribute that the form submits to is just http (no s.)

 

to avoid the warning both must be the same protocol. if your form page is critical enough to need the https protocol, the data it submits does too.

So the action looks like the following:

action="<?php echo $this->getUrl('ccfp/form') ?>index"

This is what it looks like in source code in browser:

action="http://www.domain.com/ccfp/form/index"

We are using Magento, but I can't figure how to manipulate the dynamic code to be an https rather than http.

 

Thank you for the help.  Look forward to hearing back if anyone has additional info.

I have no idea about Magento but I just did a quick magento getUrl( Google search and came up with possibly the _secure parameter. So maybe:

getUrl('ccfp/form', array('_secure' => true))

Just a guess based on the docs.  There is also a _forced_secure.

 

 

I tried that as well and also tried the "_forced_secure", but no go. Wondering if there's something in the htaccess I can manipulate to actually change the url.

 

Let me know if you can think of anything else and thanks for the help!

  • Solution

Wow, I'm an idiot...I had our site bookmarked in Firefox as https://www.domain.com...so the browser changes all pages to do the same.

 

However, when i type in "domain.com" and navigate to form, it works just fine.  A lot of wasted time for nothing.  Nonetheless, thank you for the advice.  I appreciate it.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.