← Back to release summary

COEP reflection API

Category
Miscellaneous
Type
New or changed feature
Status
No longer pursuing (Chrome No longer pursuing)
Intent stage
Start incubating

WPT details: WPT: /html/cross-origin-embedder-policy/reflection-* Results: https://wpt.fyi/results/html/cross-origin-embedder-policy?label=master&label=experimental&aligned&q=reflection

Summary

Add the crossOriginEmbedderPolicy property to Window and Worker, which reflects the environment's cross-origin-embedder-policy's value. The possibles values are: 'unsafe-none', 'credentialless', and 'require-corp'.

Motivation

Depending on the Cross-Origin-Embedder-Policy value, not every iframe/subresources can be loaded inside the document. If this reflection API is provided, 3rd party scripts can take better decisions. They can implement appropriate fallback. In particular, for trying Anonymous Iframe, Google DisplayAds, needs a way to know the COEP policy. The Ads's script could this way be able to decide in between inserting a normal or an anonymous iframe.

Standards & signals

Ecosystem

Docs: https://github.com/ArthurSonzogni/coep-reflection

Explainers: https://github.com/ArthurSonzogni/coep-reflection

View on chromestatus.com