Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Reference
  4. Headers
  5. Sec-Fetch-User

Sec-Fetch-User header

Limited availability

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

The HTTPSec-Fetch-Userfetch metadata request header is sent for requests initiated by user activation, and its value is always?1.

A server can use this header to identify whether a navigation request from a document, iframe, etc., was originated by the user.

Header typeFetch Metadata Request Header
Forbidden request headerYes (Sec- prefix)
CORS-safelisted request headerNo

Syntax

http
Sec-Fetch-User: ?1

Directives

The value will always be?1. When a request is triggered by something other than a user activation, the spec requires browsers to omit the header completely.

Examples

Using Sec-Fetch-User

If a user clicks on a page link to another page on the same origin, the resulting request would have the following headers:

http
Sec-Fetch-Dest: documentSec-Fetch-Mode: navigateSec-Fetch-Site: same-originSec-Fetch-User: ?1

Specifications

Specification
Fetch Metadata Request Headers
# sec-fetch-user-header

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp