Nástroje → Timing-Allow-Origin
Bez hlavičky prohlížeč u cross-origin zdroje ohlásí časy „as zero, an empty string, or an empty array“ — a CORS s tím nehne: hlavička je „independent of CORS“, úspěšný CORS check detailní časování neodemyká.
Timing-Allow-Origin (MDN, snímek z
27. 10. 2026) je response hlavička s Baseline „Widely
available“. Jmenuje originy, které „are allowed to see
values of attributes retrieved via features of the
Resource Timing API that are otherwise restricted for
cross-origin resources“. Bez ní prohlížeč ty hodnoty
ohlásí „as zero, an empty string, or an empty array“ —
ale jen u cross-origin zdrojů: „same-origin resources
expose full timing information without it“. Syntaxe zná
* („Any origin may see timing resources“)
a výčet originů oddělených čárkami. Hlavička je
„independent of CORS“: úspěšný CORS check „doesn't
grant access to detailed timing information“ — a naopak
Timing-Allow-Origin „doesn't expose properties that
describe the response itself, such as its body size,
content type, or status code“. Který seznam vlastností
se odemyká, MDN tady neuvádí — posílá na Cross-origin
restrictions u PerformanceResourceTiming. Co dál neříká
(a nástroj si to nedomýšlí): neplatná hodnota, velikost
písmen, cesta v URI, kombinace * s výčtem,
chování při přesměrování.
Vloží se hodnota hlavičky Timing-Allow-Origin a jestli je zdroj same-origin, nebo cross-origin; nástroj podle MDN řekne, kdo uvidí hodnoty Resource Timing API a co prohlížeč ohlásí bez hlavičky. Počítá v prohlížeči, nic se neodesílá.