草案
本页尚未完工.
Sec-Fetch-User
获取元数据标头表明了一个导航请求是否由用户激活触发。
Header type | Fetch Metadata Request Header |
---|---|
Forbidden header name | 只要包含前缀 Sec- 都属于应用程序禁止修改的HTTP消息头,用户代理保留全部对它们的控制权 |
CORS-safelisted request header |
语法
Sec-Fetch-User: ?0 Sec-Fetch-User: ?1
值
该值是一个布尔结构化的标头。
?0
- 导航请求由用户激活触发。
?1
- 导航请求由用户激活以外的原因触发。
示例
暂时没有内容
规范
Specification | Title |
---|---|
Fetch Metadata Request Headers | The Sec-Fetch-User HTTP Request Header |
浏览器兼容性
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.