❤️
SecurityHeaders.nl

Supports-Loading-Mode

The Supports-Loading-Mode header is an emerging HTTP response header designed to explicitly declare that a document is compatible with being loaded in a specific secure container, such as a <fencedframe>.

What are Fenced Frames?

Traditional <iframe> elements allow the embedding page and the embedded page to communicate with each other (e.g., via postMessage or by observing URLs). This can be leveraged for cross-site tracking.

A fenced frame is a stricter privacy boundary. It prevents communication between the embedder and the embedded document, meaning that user data cannot easily leak across the boundary. This is particularly relevant for privacy-preserving advertising APIs (like the Privacy Sandbox).

Basic Example

Supports-Loading-Mode: fenced-frame

This header tells the browser: "Yes, this page is built to function correctly inside a privacy-restricted fenced frame." Without this explicit opt-in, browsers will refuse to load the document in a fenced frame to prevent breaking legacy sites.

Why configure this?

As browsers phase out third-party cookies, privacy-preserving embedding technologies will become the standard. By adopting this header early, you signal that your site is prepared for the modern, privacy-first web.

Check Your Header

Use the SecurityHeaders.nl scanner to verify if your application correctly implements modern HTTP security standards.