ErrorBellFree

Error library / this error

How to fix it

Mixed Content: The page at 'https://…' was loaded over HTTPS, but requested an insecure resource

What it means

A secure page tried to load something over plain HTTP, and the browser blocked it.

Common causes

  • A hard-coded http:// URL for an API, image, script or iframe.
  • A backend that builds absolute URLs without knowing it sits behind HTTPS.

How to fix it

1. Use HTTPS (or relative URLs)

// before
fetch('http://api.example.com/items');
// after
fetch('https://api.example.com/items');

2. Fix the backend behind a proxy

Trust the X-Forwarded-Proto header so generated links use https.

Catch it the moment it happens

ErrorBell shows a dot on the page when this error occurs and takes you to the failing line, so you do not have to hunt through the console. Add it to Chrome, it is free.

Related errors