Skip to content
uencoder

Upgrade-Insecure-Requests

The Upgrade-Insecure-Requests header tells the browser to automatically upgrade all HTTP resource requests in the page to HTTPS.

Purpose

To declare that the site supports HTTPS so the browser auto-upgrades internal HTTP resource references, eliminating mixed content.

Mechanism

The server sends Upgrade-Insecure-Requests: 1; the browser rewrites http:// resources in the page to https://. If HTTPS is unavailable it falls back to HTTP (no blocking). Combine with CSP upgrade-insecure-requests for enforcement.

Use cases

  • Automatic HTTPS upgrade
  • Mixed-content elimination
  • Site migration

Related tools

References