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
- Specification: https://github.com/whatwg/html/pull/7948
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://crbug.com/1324521
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=reflection
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+COEP%20reflection%20API
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=COEP%20reflection%20API
- Baseline status: https://webstatus.dev/?q=COEP%20reflection%20API
Docs: https://github.com/ArthurSonzogni/coep-reflection
Explainers: https://github.com/ArthurSonzogni/coep-reflection