articles

Why the padlock disappears (mixed content)

Published 2026-11-24 · 6 min read

One `http://` load on an HTTPS page is enough to drop the padlock. Here is how to recognise mixed content, and the order to fix it.

The padlock in the address bar is gone, or the browser says "Not secure". Or a scan reported "mixed content" and you cannot tell what to fix. Many people leave it as it is.

The short answer: change everything the HTTPS page loads over `http://` to `https://`. It does not take a big script. One image is enough to raise the warning.

What mixed content is

Picture a warehouse with a strong lock on the front door. The back door is open, and goods go in and out through it. However good the front lock is, the contents are not protected.

Mixed content is the same idea. The page itself is served over HTTPS, but something inside it is loaded over http://, which leaves a hole outside the encrypted path.

On an HTTPS page, the connection between the browser and the server is encrypted. A single http:// load inside that page travels over a path that is not encrypted. The page looks locked, but there is an unlocked door inside.

Why it matters to you

Three problems arrive at once.

  • The browser shows a warning, or drops the padlock
  • For the dangerous kinds of load, the browser blocks it outright
  • Whatever is not blocked can be replaced in transit

The second one catches people out. Browsers may refuse to load http:// scripts and stylesheets for safety. So a button that works on your machine can be dead on a visitor's.

Active and passive are handled differently

Mixed content splits in two by what is being loaded. Browsers treat them differently, so the priority for fixing differs too.

| Kind | What is included | Browser behaviour | | --- | --- | --- | | Active | Scripts, stylesheets, iframes | Usually blocked | | Passive | Images, video and audio sources | Warning, but often loaded |

Active content runs inside the page. Passive content is only displayed. When active content comes over http://, it can be rewritten and run with the page's permissions, so browsers are strict about blocking it.

An image raising a warning is the passive case. The impact is small, but the padlock still goes away. To a visitor it reads as "this site is not safe", so it is not really a small thing.

Where it creeps into AI-built apps

You may never have written the code that causes this.

  • Profile images or cover images pasted from an external http:// URL
  • URLs from old templates and sample code left in place
  • http:// links or images inside articles and announcements
  • Embedded iframes (YouTube and similar) pointing at http://

It shows up most often right after you move to a custom domain. The site as a whole became HTTPS, but URLs left in content and settings did not.

How vuln shows it

In the vuln results, mixed content appears as one row, V07. You can run the check with vuln; no login is needed.

  • V07 mixed content (category: content, importance 1)

There are two findings.

  • Active loads over http:// → needs attention (severity medium)
  • Passive loads over http:// → needs attention (severity low)

It looks at tag attributes only. It reads places like <script src>, <link href>, <iframe src> and <img src>, and checks whether they point at http://.

A bare `http://` in body text, or a URL inside JSON-LD, is out of scope. If the browser never loads it as a tag, it is not loaded at all. The flip side is that a http:// link left in an article will not be found by V07. Treat links as a separate check you do yourself.

The result lists up to five URLs plus the total count. Displayed URLs drop the query (? onward) and the hash (# onward), so long parameters do not make them unreadable.

If the HTML cannot be fetched, V07 becomes "not checked". Something that was never retrieved is not called a pass.

Measured on this site

On 24 November 2026 we fetched https://ismyappok.com/en and https://ismyappok.com/ja with curl -sL and counted occurrences of http://. Both came back at 0.

So V07 passes on this site. Note that this count was not limited to tag attributes. Counting the whole page and getting zero makes it very unlikely that a tag still points at http://.

How to fix it

First find where it happens. Open your browser's developer tools and watch the Console tab. When mixed content is present, a Mixed Content warning appears with the URL. That URL is what to fix.

Then replace http:// with https://. If the other site does not support HTTPS, stop using that URL or move to a different source.

Fixing one place is not enough. The URL may still be buried in content or a template. Search the whole site for http://.

As a safety net, you can tell the browser to load http:// resources over https:// instead. That is the CSP (Content-Security-Policy, a set of instructions to the browser) directive upgrade-insecure-requests.

Content-Security-Policy: upgrade-insecure-requests

This is only a net. Fixing the URLs is the real work, and some environments ignore the directive.

The official steps are here.

For forcing HTTPS itself, see HSTS and always-on HTTPS. For how to write CSP, see CSP basics.

Fixing it is not the end

Once mixed content is gone, the padlock comes back. That does not make the site safe.

A resource loaded over https:// can still be replaced if the origin serving it is compromised. A page embedded in an iframe is not protected by your settings.

V07 only reads the tags in the top page's HTML. It does not follow links to other pages, and it does not see what JavaScript loads later. A pass means "nothing found in that range".

Summary

Mixed content looks complicated, but the work is "change http:// to https://". Start by opening the Console in developer tools and looking for Mixed Content warnings.

Each check is explained here.

When you have made the changes, run a check with vuln. You can also review display and links before launch with audit (no login).

We wrote this article after checking our own site. It contains no results from scanning third-party sites. The numbers describe how the implementation works; measured values are only those stated with a date and method in the text.

Check your own site

Enter a URL and see what is missing before launch. Free, and no login required.

Run the free check