---
url: "https://owasp.org/www-project-secure-headers/miscellaneous/"
titulek: "Miscellaneous | OWASP Secure Headers Project"
h1: "Miscellaneous"
popis: "Provides technical information about HTTP security headers."
jazyk: "en-US"
kanonicka: "https://owasp.github.io/www-project-secure-headers/miscellaneous/"
drobecky: []
zdroj: "live"
wayback_snapshot: ""
stazeno: "2026-09-14 22:14:10"
znaku: 8594
slov: 1029
kodovani: "utf-8"
sha256: "8073b6b981f67ce4c5b3471c298a5602d48e09bdafd8433b1c7303411882ccfa"
---
# Miscellaneous
π‘ This section provides extra useful information about HTTP Security headers.
- Fetch metadata request header
- Local Network Access
## Fetch metadata request headers
A fetch metadata request header is an HTTP request header that provides additional information about the context from which the request originated. This allows the server to make decisions about whether a request should be allowed based on where the request came from and how the resource will be used .
π These headers are prefixed with `Sec-`, and hence have [forbidden header names](https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name). As such, they *cannot be modified from JavaScript*.
π Source [Mozilla MDN](https://developer.mozilla.org/en-US/docs/Glossary/Fetch_metadata_request_header).
π― These headers can be leveraged to add protection measures against [XS-Leaks](https://xsleaks.dev/docs/defenses/opt-in/fetch-metadata/) attacks.
### Sec-Fetch-Dest
The `Sec-Fetch-Dest` fetch metadata request header indicates the requestβs destination. That is the initiator of the original fetch request, which is where (and how) the fetched data will be used.
π Possible values are detailed [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest#directives).
π Source [Mozilla MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest).
### Sec-Fetch-Mode
The `Sec-Fetch-Mode` fetch metadata request header indicates the [mode](https://developer.mozilla.org/en-US/docs/Web/API/Request/mode) of the request: **cors**, **no-cors**, **same-origin**, **navigate** or **websocket**.
Broadly speaking, this allows a server to distinguish between: requests originating from a user navigating between HTML pages, and requests to load images and other resources.
π Possible values are detailed [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode#directives).
π Source [Mozilla MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode).
### Sec-Fetch-User
The `Sec-Fetch-User` fetch metadata request header *is only sent for requests initiated by user activation*, and its value will always be `?1`.
π Source [Mozilla MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-User).
### Sec-Fetch-Site
The `Sec-Fetch-Site` fetch metadata request header indicates the relationship between a request initiatorβs origin and the origin of the requested resource.
In other words, this header tells a server whether a request for a resource is coming from the same origin, the same site, a different site, or is a βuser-initiatedβ request. The server can then use this information to decide if the request should be allowed.
π Possible values are detailed [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site#directives).
π Source [Mozilla MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site).
π‘ Explanation about **Site** vs **Origin** can be found [here](https://web.dev/same-site-same-origin/).
### Example
```
GET /www-project-secure-headers/
Host: owasp.org
User-Agent: Chrome/91.0.4472.124
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: cross-site
Sec-Fetch-User: ?1
```
### References
- [https://developer.mozilla.org/en-US/docs/Glossary/Fetch_metadata_request_header](https://developer.mozilla.org/en-US/docs/Glossary/Fetch_metadata_request_header)
- [https://caniuse.com/mdn-http_headers_sec-fetch-dest](https://caniuse.com/mdn-http_headers_sec-fetch-dest)
- [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest)
- [https://caniuse.com/mdn-http_headers_sec-fetch-mode](https://caniuse.com/mdn-http_headers_sec-fetch-mode)
- [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode)
- [https://caniuse.com/mdn-http_headers_sec-fetch-user](https://caniuse.com/mdn-http_headers_sec-fetch-user)
- [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-User](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-User)
- [https://caniuse.com/mdn-http_headers_sec-fetch-site](https://caniuse.com/mdn-http_headers_sec-fetch-site)
- [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site)
- [https://web.dev/same-site-same-origin/](https://web.dev/same-site-same-origin/)
- [https://jub0bs.com/posts/2021-01-29-great-samesite-confusion/#are-site-and-origin-interchangeable](https://jub0bs.com/posts/2021-01-29-great-samesite-confusion/#are-site-and-origin-interchangeable)
- [https://portswigger.net/daily-swig/firefox-becomes-latest-browser-to-support-fetch-metadata-request-headers](https://portswigger.net/daily-swig/firefox-becomes-latest-browser-to-support-fetch-metadata-request-headers)
- [https://xsleaks.dev/docs/defenses/opt-in/fetch-metadata/](https://xsleaks.dev/docs/defenses/opt-in/fetch-metadata/)
## Local Network Access
> π€ Gemini was used to obtain further details on this specification, in addition to the manual analysis that had been performed. Tests were performed on `Chromium 148.0.7735.0`.
π― The purpose of **Local Network Access** (called *LNA*) is to prevent public websites from silently accessing devices on a userβs local network: The browser must ask the user for permission before allowing such requests.
π₯οΈ The specification defines 3 spaces of IP addresses. Their description is taken from the specification itself ([source](https://wicg.github.io/local-network-access/#ip-address-space-section)):
- **loopback** : *Includes loopback addresses, which are only accessible on the local host* .
- **local** : *Contains addresses that have meaning only within the current network* .
- **public** : *Contains all other addresses* .
π A LNA permission popup is triggered when the request targets **a more private network** that the one of the current site:
| Origin | Target | Result |
| --- | --- | --- |
| public | local | Permission required |
| public | loopback | Permission required |
| local | loopback | Allowed |
| loopback | local | Allowed |
π§βπ» The following test was performed with a page hosted on GitHub trying to access to a resource (image here) hosted on a local domain bound to `127.0.0.1`:
π File `index.html` hosted on *github.io*:
```
```
π 2 permissions popups were raised by Chromium in the following sequence:
π‘ Explanation of the 2 permissions popup:
- The first popup `Access other apps and services on this device` is intended to ask permission to access the resource hosted on a **loopback** network as the domain was bound to `127.0.0.1` .
- Flow: From a **public** network ( `github.io` ) to a **loopback** network ( `righettod.local` bound to `127.0.0.1` ).
- The second popup `Access other devices on your local network` is intended to ask permission to access a resource on a **local** network.
- Flow: From a **public** network ( `github.io` ) to a **local** network ( `righettod.local` ). As the domain targeted was ending with `.local` , then Chromium identified that the local network was targeted.
π¬ The only information, that the target site will have about the sender of the request, is the content of the request headers [Referer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referer) for the base URL and [Sec-Fetch-Site](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Sec-Fetch-Site) to indicate that the request is a cross site one:
π Therefore, it is the browser that control itself if the request is sent or not based on:
1. The triggering of permission popups if the network of the target resource is more private than the network of the site initiating the request.
2. The reply of the user to the permission popups if triggered.
π The target site will only have the value of the request header [Referer](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referer) to check the corresponding IP address to see if it is part of the **loopback**, **local** or **public** IP addresses space.
### References
- [https://developer.chrome.com/blog/local-network-access](https://developer.chrome.com/blog/local-network-access)
- [https://wicg.github.io/local-network-access/](https://wicg.github.io/local-network-access/)
- [https://github.com/WICG/local-network-access](https://github.com/WICG/local-network-access)
- [https://fosdem.org/2026/schedule/event/QCSKWL-firefox-local-network-access/](https://fosdem.org/2026/schedule/event/QCSKWL-firefox-local-network-access/)