Permissions-Policy: attribution-reporting

Limited availability

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

实验性: 这是一项实验性技术
在将其用于生产之前,请仔细检查浏览器兼容性表格

HTTP Permissions-Policy 标头的 attribution-reporting 指令控制当前文档是否被允许使用 Attribution Reporting API

具体来说,如果定义的策略阻止使用此特性:

语法

http
Permissions-Policy: attribution-reporting=<allowlist>;
<allowlist>

允许使用该特性的来源列表。请参阅 Permissions-Policy > 语法了解更多详细信息。

默认策略

attribution-reporting 的默认允许列表为:*

规范

Specification
Attribution Reporting
# permission-policy-integration

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
attribution-reporting
Experimental

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Experimental. Expect behavior to change in the future.

参见