-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
67 lines (51 loc) · 1.89 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
title: Supports-Loading-Mode
slug: Web/HTTP/Headers/Supports-Loading-Mode
page-type: http-header
status:
- experimental
browser-compat: http.headers.Supports-Loading-Mode
---
{{HTTPSidebar}}{{securecontext_header}}{{SeeCompatTable}}
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.
<table class="properties">
<tbody>
<tr>
<th scope="row">Header type</th>
<td>{{Glossary("Response header")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name")}}</th>
<td>no</td>
</tr>
<tr>
<th scope="row">
{{Glossary("CORS-safelisted response header")}}
</th>
<td>no</td>
</tr>
</tbody>
</table>
## 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_inline}}
- : Indicates that a destination origin opts in to loading documents via cross-origin, same-site [prerendering](/en-US/docs/Web/API/Speculation_Rules_API#using_prerendering).
- `fenced-frame`
- : The response can loaded inside a [fenced frame](/en-US/docs/Web/API/Fenced_frame_API). 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
- [Fenced Frame API](/en-US/docs/Web/API/Fenced_frame_API)
- [Speculation Rules API](/en-US/docs/Web/API/Speculation_Rules_API)
- [Speculative loading](/en-US/docs/Web/Performance/Speculative_loading)
- [Prerender pages in Chrome for instant page navigations](https://developer.chrome.com/blog/prerender-pages/) on developer.chrome.com (2023)