NeovaZaawansowana platforma SEO

Formularz na URL HTTPS wysyła dane na HTTP

W Neova Działa na samym crawlu: nic nie trzeba ustawiać.

Ostatni przegląd reguły: 17 października 2026 · Aktualizacja poradnika: 28 września 2026

Dane przesyłane przez odwiedzających podróżują bez szyfrowania, choć formularz znajduje się na bezpiecznym URL. Chrome ostrzega przed formularzami mieszanymi od wersji Chrome 87.

Co możesz zrobić

Zmień action formularza na URL https:// i upewnij się, że endpoint akceptuje HTTPS.

Dlaczego Neova to oznacza

  • Dane wysyłane przez formularz idą bez szyfrowania, mimo że sama strona jest na HTTPS.
  • Chrome ostrzega przed takimi mieszanymi formularzami od wersji Chrome 87, przy wypełnianiu formularza i przed jego wysłaniem.
  • Odwiedzający, którzy zobaczą ostrzeżenie, mogą porzucić formularz.

Źródła

Pełny poradnik

Ta część jest na razie po angielsku.

TL;DR

A form on an HTTPS page that posts to an HTTP endpoint sends user data over an unencrypted connection, so fix it by pointing the form action at an HTTPS URL and enforcing HTTPS across your whole site.

What "HTTPS Form Posts to HTTP" Means

This issue fires when one of your pages is loaded securely over HTTPS, but a form on that page submits its data to an insecure HTTP address. The page itself is encrypted, yet the moment the visitor clicks submit, whatever they typed (a name, an email, a password, a credit card number) travels to the server in plain text. The lock icon in the address bar promises safety the form does not actually deliver.

Browsers treat a form whose target is HTTP as "active mixed content." Active mixed content is content that can change the behavior of the page, and forms qualify because the destination receives and processes user input. According to MDN's documentation on mixed content, browsers sort insecure requests into upgradable and blockable categories, and active mixed content like an insecure form target is treated as a serious risk.

Why an Insecure Form Action Is Dangerous

Data Interception

When a form posts over HTTP, the submission is not encrypted in transit. Anyone positioned between the visitor and your server (on shared WiFi, a compromised router, or a hostile network hop) can read the data as it passes. Worse, because forms are active content, an attacker can do more than eavesdrop. As web.dev explains, an attacker can intercept and rewrite active content and use it to take full control of the page or even the entire site. That means injected fields, redirected submissions, and stolen credentials, not just passive snooping.

Browser Warnings and Blocking

Modern browsers actively defend against this. They either warn the user before the form is sent or block the insecure submission outright. Chrome, Firefox, and other browsers display a warning when a secure page tries to submit a form to an insecure endpoint, and increasingly they upgrade or block the request entirely. The result is a broken form, a scary security interstitial, or a silently dropped submission, none of which inspire trust or capture the lead you wanted.

Trust and SEO Signals

Google has long encouraged HTTPS everywhere, and an insecure form undercuts the secure experience users expect. Visitors who see a "not secure" warning at the moment of conversion abandon. Search engines reward sites that deliver a consistent, secure experience, so leaving a form leaking to HTTP works against both your conversions and your technical-SEO health.

How to Diagnose It

Find the offending form by viewing the page source and searching for action="http:// or action='http://'. The form's opening tag will reveal the insecure target. You can also open your browser developer tools, load the page, and check the Console and Security panels, which flag mixed content. A site crawl that inspects form action attributes (the kind Neova runs) will surface every page where a secure document points a form at an HTTP URL, so you fix the pattern site-wide rather than one page at a time.

How to Fix It

Point the Form Action at HTTPS

The direct fix is to change the form's action so it targets the HTTPS version of the same endpoint. If the endpoint lives on your own domain, a protocol-relative or root-relative path also works because it inherits the page's secure scheme.

<!-- Bad: secure page posting to an insecure endpoint -->
<form action="http://example.com/subscribe" method="post">

<!-- Good: explicit HTTPS target -->
<form action="https://example.com/subscribe" method="post">

<!-- Also good: root-relative path inherits the page scheme -->
<form action="/subscribe" method="post">

Enforce HTTPS Site-Wide

Fixing one action attribute is not enough if your server still answers on HTTP. Redirect all HTTP traffic to HTTPS at the server level and add the upgrade-insecure-requests Content Security Policy directive, which instructs the browser to treat insecure URLs as if they were secure before any request goes out. Per MDN's CSP guide, this directive is built for sites with many legacy insecure URLs that need rewriting. You can deliver it as a response header or as a meta tag.

<!-- Tell browsers to upgrade insecure requests automatically -->
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

# Apache .htaccess redirect to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

You can also lock down where forms are allowed to submit with the CSP form-action directive, which restricts the URLs a form is permitted to target.

Common Mistakes

Hardcoded HTTP in the Action Attribute

The most frequent cause is a full absolute URL beginning with http:// baked into the template by a developer, a page builder, or an old theme. Because the scheme is hardcoded, it stays insecure even after the rest of the site moves to HTTPS. Search your theme, templates, and database for the literal string http:// inside action attributes and replace it.

Third-Party Endpoints That Only Offer HTTP

Sometimes the form posts to an external service (a mailing-list provider, a legacy CRM, a payment gateway) whose endpoint URL was set up years ago on HTTP. Check whether the provider now offers an HTTPS endpoint, which almost all reputable ones do, and swap to it. If a vendor genuinely cannot accept HTTPS, that is a signal to move to a provider that can, because no user data should leave a secure page over an unencrypted connection.

FAQ

Q: My page is HTTPS, so isn't the data already encrypted?

A: No. The page loading securely only encrypts what the server sends to the browser. The form submission is a separate request, and if its action points to HTTP, that request leaves the browser unencrypted regardless of how the page itself loaded.

Q: Will browsers actually block the form, or just warn?

A: Behavior varies, but modern browsers do both depending on version and settings: some show a warning before sending, and others block or upgrade the insecure submission. Either way the experience is broken or untrustworthy for the user, so you should not rely on the browser to rescue it.

Q: Can I just add the upgrade-insecure-requests CSP and leave the http action alone?

A: That directive helps as a safety net and is recommended, but it is not a substitute for correct markup. Fix the action attribute itself so the form is secure even where CSP support is incomplete, then add the directive as defense in depth.

Need a full technical audit?

Neova runs deep crawls that catch issues like this across your whole site.

Znajdź to na swojej stronie

Neova uruchamia ten test i wszystkie pozostałe przy każdym crawlu, a potem zapisuje poprawkę jako ticket dla Twojego zespołu.

  • Aplikacja na Maca, Windows i Linuksa
  • Wszystkie 696 testy, każdy ze źródłem
  • Search Console i Analytics 4 połączone tylko do odczytu
  • Tickety do Jiry, Lineara i Asany

Pobierz Neova Plan Desktop Free albo Solo za darmo przez 14 dni, bez karty.

Wszystkie testy z kategorii Bezpieczeństwo · Poradniki · Biblioteka testów

Autor: Neova Labs · Wróć do Biblioteki testów