1. Home
  2. Glossary
  3. Mixed content
Security

Mixed content

An HTTPS page that loads some resources, such as images, scripts or styles, over plain HTTP. Browsers may block these or show a warning.

Why it matters

One insecure resource can make browsers block content or remove the padlock, and an attacker on the network could alter it. Fix it by loading everything over HTTPS.

Example

<img src="http://example.com/logo.png"> <!-- should be https:// -->

Where you will see it

The free Mixed content checker looks at this on a live page and explains what it finds in plain English: find insecure http:// scripts, styles, images and frames on HTTPS pages, with fixes.

Related terms

  • TLS: Transport Layer Security, the protocol that encrypts the connection between browser and server.
  • HSTS: An HTTP response header that tells browsers to use only HTTPS for your domain for a set number of seconds, even if a visitor types an http:// address.
  • Content-Security-Policy: An HTTP response header that lists which sources a page may load scripts, styles, images and other resources from.

Go deeper

  • Security headers explained: What HSTS, Content-Security-Policy, X-Content-Type-Options, frame-ancestors, Referrer-Policy and Permissions-Policy do, with safe example values.

← All 66 glossary terms

↑ ↓ to moveEnter to openEsc to closeAll results