Welcome What's new in Chrome extensions API reference Samples
Welcome What's new in Chrome extensions API reference Samples

Cross-origin embedder policy

Published on Updated on

The cross_origin_embedder_policy manifest key lets the extension specify a value for the Cross-Origin-Embedder-Policy (COEP) response header for requests to the extension's origin. This includes the extension's service worker, popup, options page, tabs that are open to an extension resource, etc.

Together with cross_origin_opener_policy, this key allows the extension to opt into cross-origin isolation.

Manifest declaration

This key was introduced in Chrome 93.

The cross_origin_embedder_policy manifest key contains an object with one property named value that takes a string. Chrome uses this string as the value of the Cross-Origin-Embedder-Policy header when serving resources from the extension's origin. For example:

{
...
"cross_origin_embedder_policy": {
"value": "require-corp"
},
...
}

See the Cross-origin isolation overview for more information about this feature.

Updated on Improve article

This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.