Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form posts to an http endpoint from an https page: fix it

OPS-066High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Every HTML form has an action attribute: the address the browser sends the form data to. If your page is on https:// but the action is http://, the page is secure and the submission is not. This is a type of mixed content (secure page, insecure request).

Broken: https page, http form actionhtml
<form action="http://www.example.com/submit" method="post">
  <input type="email" name="email">
  <button type="submit">Send</button>
</form>

Why it costs you leads or sales

Modern browsers treat insecure form submissions seriously. Depending on the browser and version, the visitor may see a warning that the information they are sending is not secure, or the submission may be blocked outright. Some visitors will stop at the warning. Others will click send and silently lose the lead because the request never reached you.

Where the lead is lost
  1. Visit https pagePage loads securely
  2. Fill in formVisitor enters details
  3. Submit to http actionWarning shown or request blocked
  4. Lead in inbox/CRMNever arrives
  5. Conversion trackedThank-you page and tags never fire

The visitor does everything right; the break is at the submit.

Form submissions reaching youExample numbers
Form submissions reaching you (example)Form action is https: 100 submissions per 100 attempts; Form action is http (warning): 70 submissions per 100 attempts; Form action is http (blocked): 0 submissions per 100 attempts03877100700Form action is httpsForm action is http (…Form action is http (…submissions per 100 attempts

Example: illustrative numbers only. Real losses depend on the browser, the warning shown and your audience.

How to check if your site has it

Find insecure form actions
  1. Open the page in Chrome

    Use the page that holds the form, loaded over https.

  2. Inspect the form

    Right-click the form, choose Inspect, and find the <form> tag. Read the action value. If it starts with http://, you have the issue.

  3. Check the Console

    Open DevTools, then Console. Look for messages such as 'Mixed Content' or 'The form was loaded over HTTPS, but submitting to an insecure endpoint'.

  4. Watch the Network tab

    Open Network, tick Preserve log, submit a test entry and look for a request to an http:// URL, or one marked blocked.

  5. Search your source

    View page source and search for action="http:. Also check embedded forms inside iframes, since they have their own action.

How to fix it

The fix is to make the submit address https. First check that the receiving endpoint supports https. Open the https:// version of the URL in a browser or ask the tool's support. If it has no valid certificate, you need to switch to a provider or endpoint that does.

Change the form endpoint to https
  1. Check Settings > General

    Make sure WordPress Address and Site Address both start with https://.

  2. Check the form plugin

    In your form plugin (Contact Form 7, WPForms, Gravity Forms and others) look for a custom action URL, webhook or CRM endpoint and change http:// to https://.

  3. Fix stored URLs

    If old http URLs are saved in the database, run a search and replace with a trusted tool, after taking a backup.

Fixed: https action (or a relative path)html
<form action="https://www.example.com/submit" method="post">
  <input type="email" name="email">
  <button type="submit">Send</button>
</form>
Form submission before and after

Before

  • Form action starts with http://
  • Browser warns or blocks the submit
  • Lead data sent unencrypted
  • Leads and conversions go missing

After

  • Form action starts with https://
  • No warning on submit
  • Data encrypted in transit
  • Lead reaches inbox and CRM

How to confirm it's fixed

Confirmation checks
  • The form tag shows an https:// action (or a relative path) in Inspect.
  • The Console shows no mixed content messages on the page.
  • The Network tab shows the submit request going to an https:// URL with a success status.
  • A test lead arrives in your inbox and CRM.
  • The thank-you page loads and your conversion tags fire.
  • You tested in more than one browser, including a mobile one.

How to prevent it happening again

Prevention habits
  • After any move to https, search your theme, plugins and saved embeds for http:// form URLs.
  • Copy fresh embed codes from your form or CRM tool instead of reusing old ones.
  • Use relative paths for forms that post to your own site.
  • Test every form end to end after theme, plugin or CRM changes.
  • Add a Content-Security-Policy with the form-action directive if you want the browser to block unknown form targets.
  • Schedule a regular test submission so a break is caught in hours, not weeks.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It flags mixed content on your pages, which can point to insecure resources including some insecure form requests. It does not check the form's action attribute directly, so a form that posts to an http address may not be reported by name.

Questions people ask

Why does my browser say a form is not secure on an https page?

The page is https, but the form's action URL starts with http://. That means the data would be sent without encryption, so the browser warns or blocks it. Change the action to https:// to remove the warning.

Can a form on an https page submit to an http URL?

Technically it can be written that way, but modern browsers may warn the visitor or block the submission. Even where it works, the data travels unencrypted. You should always use an https endpoint.

How do I find which form is posting to http?

Right-click the form, choose Inspect and read the action attribute on the form tag. Also check the Console for mixed content messages and the Network tab for requests to http:// addresses while you submit a test entry.

Will a redirect from http to https fix a form that posts to http?

Not reliably. The browser may block the insecure request before it is sent, and a redirect can drop the posted data. Change the form's action to https at the source.

Why did my form stop working after I moved my site to https?

The form probably still points to an old http address, such as a saved embed code, a hard-coded URL or a plugin setting. Update that address to https and test a submission.

Does a form posting to http affect my conversion tracking?

Yes. If the submission is blocked, the thank-you page or confirmation never loads, so the conversion tags that depend on it never fire. You lose both the lead and the record of it.

Does FunnelGuard detect a form posting to an http endpoint?

Only partly. It flags mixed content on your pages but does not check the form action itself. Its scheduled journey tests submit a test lead and check it arrives, which can reveal a blocked submission, and you should check actions by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Mixed content flagged; form action not checked.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.