-
Notifications
You must be signed in to change notification settings - Fork 8k
/
index.md
63 lines (45 loc) · 1.57 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
title: Timing-Allow-Origin
slug: Web/HTTP/Headers/Timing-Allow-Origin
---
{{HTTPSidebar}}
O cabeçalho de resposta **`Timing-Allow-Origin`** especifica origens que são permitidas de ver os valores dos atributos por funcionalidades da [Resource Timing API](/pt-BR/docs/Web/API/Resource_Timing_API), na qual caso contrário será reportada como zero dada as restrições entre origens.
<table class="properties">
<tbody>
<tr>
<th scope="row">Tipo de cabeçalho</th>
<td>{{Glossary("Response header")}}</td>
</tr>
<tr>
<th scope="row">{{Glossary("Forbidden header name")}}</th>
<td>não</td>
</tr>
</tbody>
</table>
## Sintaxe
```
Timing-Allow-Origin: *
Timing-Allow-Origin: <origin>[, <origin>]*
```
## Diretivas
- \*
- : O servidor pode especificar "\*" como um coringa, sendo assim permitindo qualquer origem de ver os tempos dos recursos.
- \<origin>
- : Especifica uma URI que pode ver os tempos dos recursos. Você pode especificar várias origens, separadas por vírgulas.
## Exemplos
Para permitir qualquer recurso veja os tempos dos recursos:
```
Timing-Allow-Origin: *
```
Para permitir `https://developer.mozilla.org` de ver os tempos de recursos de, você pode especificar:
```
Timing-Allow-Origin: https://developer.mozilla.org
```
## Especificações
{{Specifications}}
## Compatibilidade com navegadores
{{Compat}}
## Veja também
- [Resource Timing API](/pt-BR/docs/Web/API/Resource_Timing_API)
- [Usando a Resource Timing API](/pt-BR/docs/Web/API/Resource_Timing_API/Using_the_Resource_Timing_API)
- {{HTTPHeader("Vary")}}