Supports-Loading-Mode

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The Supports-Loading-Mode header allows a response to opt-in to being loaded in a novel, higher-risk context that it would otherwise fail to be loaded in.

Header type Response header
Forbidden header name no
CORS-safelisted response header no

Syntax

http
Supports-Loading-Mode: <comma-separated list of client hint headers>

Directives

The Supports-Loading-Mode header value is a list of one or more tokens, which can include the following values:

credentialed-prerender Experimental

Indicates that a destination origin opts in to loading documents via cross-origin, same-site prerendering.

fenced-frame

The response can loaded inside a fenced frame. Without this explicit opt-in, all navigations inside of a fenced frame will fail.

Examples

http
Supports-Loading-Mode: fenced-frame

Specifications

Specification
Prerendering Revamped
# supports-loading-mode

Browser compatibility

BCD tables only load in the browser

See also