Timing-Allow-Origin
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.
响应头 Timing-Allow-Origin
用于指定特定站点,以允许其访问Resource Timing API提供的相关信息,否则这些信息会由于跨源限制将被报告为零
Header type | Response header |
---|---|
Forbidden header name | no |
语法
Timing-Allow-Origin: * Timing-Allow-Origin: <origin>[, <origin>]*
指令
示例
如需允许任何资源都可以看到的计时 (timing) 信息,你可以如此设置:
Timing-Allow-Origin: *
如需允许https://developer.mozilla.org
查看你的计时信息,你可以设置:
Timing-Allow-Origin: https://developer.mozilla.org
规范
Specification |
---|
Resource Timing # sec-timing-allow-origin |
浏览器兼容性
BCD tables only load in the browser