RealComposer
Security & ReliabilityAcronym: HSTS

HTTP Strict Transport Security (HSTS)

Direct Definition

HTTP Strict Transport Security (HSTS) is a response header that instructs browsers to use only HTTPS for a host for a defined max-age. It protects users from downgrade and SSL stripping attacks after their first secure visit.

Technical Architecture & Deep-Dive

The Strict-Transport-Security header includes max-age and optional includeSubDomains and preload flags. Preload submission adds your domain to browser built-in lists, which is irreversible without long lead times.

Terminate TLS at your edge, redirect HTTP to HTTPS before sending HSTS, and use conservative max-age during pilots. APIs called only from your own origin inherit HSTS when the SPA and BFF share the registrable domain.

Key Architectural Benefits

Blocks casual SSL stripping on public Wi-Fi networks.
Preload hardens first-visit users on major browsers.
Pairs with TLS 1.2+ and modern cipher suites on the edge.
REALCOMPOSER EDGE WORKSPACE

Implement HTTP Strict Transport Security (HSTS) at the Edge

Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.

START BUILDING FREE

Frequently Asked Questions

Q:Should JSON API subdomains send HSTS?

Yes when browsers call them directly. Pure server-to-server subdomains still benefit from enforced TLS at the load balancer.

Related Architecture Concepts

Ready-to-Use Edge Recipes