Back to Content

Timing-Allow-Origin header

files/en-us/web/http/reference/headers/timing-allow-origin/index.md

latest1.3 KB
Original Source

The HTTP Timing-Allow-Origin {{Glossary("response header")}} specifies origins that are allowed to see values of attributes retrieved via features of the Resource Timing API, which would otherwise be reported as zero due to cross-origin restrictions.

<table class="properties"> <tbody> <tr> <th scope="row">Header type</th> <td>{{Glossary("Response header")}}</td> </tr> </tbody> </table>

Syntax

http
Timing-Allow-Origin: *
Timing-Allow-Origin: <origin>, …, <originN>

Directives

  • * (wildcard)
    • : Any origin may see timing resources.
  • <origin>
    • : Specifies a URI that may see the timing resources. You can specify multiple origins, separated by commas.

Examples

Using Timing-Allow-Origin

To allow any resource to see timing resources:

http
Timing-Allow-Origin: *

To allow https://developer.mozilla.org to see timing resources, you can specify:

http
Timing-Allow-Origin: https://developer.mozilla.org

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also