Back to Content

Supports-Loading-Mode header

files/en-us/web/http/reference/headers/supports-loading-mode/index.md

latest1.6 KB
Original Source

{{securecontext_header}}{{SeeCompatTable}}

The HTTP Supports-Loading-Mode {{Glossary("response 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.

<table class="properties"> <tbody> <tr> <th scope="row">Header type</th> <td>{{Glossary("Response header")}}</td> </tr> <tr> <th scope="row"> {{Glossary("CORS-safelisted response header")}} </th> <td>No</td> </tr> </tbody> </table>

Syntax

http
Supports-Loading-Mode: <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_inline}}
    • : Indicates that a destination origin opts in to loading documents via cross-origin, same-site prerendering.
  • fenced-frame {{experimental_inline}}
    • : 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

{{Specifications}}

Browser compatibility

{{Compat}}

See also