Defaults.Exposed

Defaults.ExposedFixes › Cross-origin isolation headers (COOP / CORP / COEP)

How to fix Cross-origin isolation headers (COOP / CORP / COEP)

Three optional browser instructions that control how other websites are allowed to interact with yours — opening it in popups, embedding its images and scripts, or pulling its resources into their own pages. They are modern hardening, not a basic must-have, and on our scoring they are informational: missing them does not lower your grade. But the two safe ones close a quiet phishing and bandwidth-theft gap, and a careful buyer's IT team will notice when they are present.

Bottom line for your business: Two of these three headers shut down sophisticated popup-phishing and stop other sites from hotlinking your images and scripts (which costs you bandwidth and can leak data). They are free, take a developer about 15 minutes, and won't break anything. The third is advanced and can break analytics, fonts and embeds — most businesses should leave it off. None of them affect your grade, so treat them as polish, not panic: do the two safe ones, skip the risky one unless you specifically need it.

What this can cost you

Why it matters. These are forward-looking browser-hardening headers. On our methodology all three are informational — they are registered with zero points and never move your grade — because they're advanced controls that a site can legitimately operate without, and one of them can do harm if misapplied. We report on them so you can see where you stand. The two safe ones (COOP and CORP) are genuinely worth adding: free, fast, and they close real popup-phishing and resource-theft gaps without breaking anything.

What these are, in plain words

When someone visits your website, their browser doesn’t just load your pages in isolation — it also decides how other websites are allowed to interact with yours. Can another site open your site in a popup and keep hold of it? Can another site reach across and embed your images and scripts in their own pages? Can your own site safely use certain powerful, locked-down browser features?

These three headers are short, invisible instructions your website sends to every visitor’s browser to answer exactly those questions. They’re known by their initials:

Two of them (COOP and CORP) are safe to add and genuinely useful. The third (COEP) is advanced and can break things if switched on carelessly.

The most important thing to know up front: on our scoring, all three are informational. They do not affect your grade. A missing one costs you nothing. We report on them so you can see where you stand and tidy up the easy wins — not so you panic about a number.

What this can cost you

These are niche risks, not headline ones — but they’re real, and the fixes are free.

What each one actually is

When another website opens yours using a popup or window.open, the two windows can normally keep a reference to each other. That link can be abused: the opener can manipulate or redirect your window, read fragments of its URL, and stage convincing phishing using your real domain. COOP: same-origin breaks that relationship — your window becomes isolated from anything that opened it across origins. Normal browsing, your own internal links, and ordinary navigation are completely unaffected.

What “good” looks like: Cross-Origin-Opener-Policy: same-origin.

By default, your images, scripts and other files can be embedded by any site anywhere. CORP: same-origin tells browsers to refuse cross-origin embedding of your resources — so other sites can’t hotlink your assets or pull them into their pages. Your own site still loads its own resources exactly as before; only outside sites are blocked.

What “good” looks like: Cross-Origin-Resource-Policy: same-origin. (If you intentionally publish assets for others to embed — a public logo, an open API — your developer can relax this on those specific responses.)

COEP — Cross-Origin-Embedder-Policy (advanced, usually leave off)

COEP completes “cross-origin isolation”: combined with COOP, it requires that every resource your page loads explicitly opts in (via CORS or CORP). Done right, this unlocks certain powerful browser features (like SharedArrayBuffer) and adds another layer against Spectre-class attacks. But because it demands opt-in from everything you load, it readily breaks third-party tools — analytics, fonts, embedded widgets — that weren’t built to opt in. Most websites don’t need the features it unlocks and shouldn’t carry the breakage risk.

What “good” looks like: for the rare site that needs it, Cross-Origin-Embedder-Policy: credentialless — the safer value, less likely to break external resources than require-corp. For everyone else, absent is fine, and our report won’t penalise you for it.

How to fix it (free, ~15 minutes)

Hand this to your IT person or web developer — the fix is free. Adding COOP and CORP is a couple of one-line settings on your server or CDN; there’s no licence and no ongoing cost. The only instruction for the owner is: do the two safe ones, and do not enable COEP without testing.

These are response headers, set wherever your site’s responses are produced — most easily at your CDN (e.g. Cloudflare) if you have one, otherwise in your web server config.

Cloudflare — Rules → Transform Rules → Modify Response Headers → Set:

Nginx:

add_header Cross-Origin-Opener-Policy   "same-origin" always;
add_header Cross-Origin-Resource-Policy "same-origin" always;

Apache:

Header always set Cross-Origin-Opener-Policy   "same-origin"
Header always set Cross-Origin-Resource-Policy "same-origin"

These are safe to add and will not break normal functionality. After deploying, reload a few pages and confirm the site behaves exactly as before (it should).

The advanced header (only if you specifically need it)

Do not switch this on without testing in staging first. COEP can break analytics, fonts and embedded widgets.

Cloudflare: Transform Rules → Set Cross-Origin-Embedder-Policy = credentialless.

Nginx:

add_header Cross-Origin-Embedder-Policy "credentialless" always;

Use credentialless rather than require-corp — it’s less likely to break external resources. Test thoroughly in staging; watch for any third-party script, font or embed that stops loading. If something breaks and you don’t actually need the features COEP unlocks, simply remove the header — there’s no penalty for not having it.

Platform notes

Common mistakes

A note on grade

To be completely plain: none of these three checks affect your grade. They are registered in our methodology as informational, with zero points, and a missing one never costs you anything. We surface them because the two safe ones are cheap, genuine improvements and because seeing the full picture is useful — not because there’s a number to defend. If you do nothing here, your grade is exactly the same. If you add COOP and CORP, you’ve closed a couple of real (if niche) gaps for free. That’s the right way to think about this page: optional polish, with one clearly-labelled trap to avoid.

FAQ

These don't affect my grade — should I bother at all?

Two of them, yes; one, probably not. COOP and CORP are free, take minutes, and won't break your site — they close real (if niche) attack paths, so they're worth doing as cheap hygiene. COEP is advanced and can break third-party tools, so most businesses should leave it off unless they specifically need the browser features it unlocks. None of the three change your score either way, so there's no urgency — treat the two safe ones as a tidy-up next time your developer is in the site.

I'm not technical — is this something I have to action?

Not personally, and not urgently. Because these are informational, nothing bad happens to your grade if you skip them. If you'd like to add the two safe ones, hand the 'How to fix it' section to whoever manages your website or CDN — it's a couple of one-line settings and the fix is free. The only one to flag explicitly is COEP: tell them not to switch it on without testing, because it can break analytics and embedded widgets.

What's the difference between these and the headers that DO affect my grade?

The scored web-security headers — HTTPS redirect, HSTS, Content-Security-Policy, clickjacking protection (X-Frame-Options), and MIME-sniffing protection — defend against common, widely-exploited attacks, so missing them costs points. The three on this page (COOP, CORP, COEP) are newer, more specialised browser-isolation controls. They're good practice but not yet baseline expectation, so we report them without scoring them. Do the scored ones first; these are polish on top.

Will adding COOP or CORP break my website or my partners' integrations?

The recommended settings (both 'same-origin') are designed to be safe. COOP only severs the link to windows your site opens in pop-ups — normal browsing, your own pages, and ordinary links are unaffected. CORP only stops *other* sites from embedding your images and scripts; your own site loads its own resources exactly as before. If you actually serve assets (like a public logo or an API) that other sites are meant to embed, your developer can use a more permissive setting on those specific responses. The one that genuinely risks breakage is COEP — keep that one off unless tested.

What does 'hotlinking' cost me, really?

When another site embeds your image or script straight from your server instead of hosting their own copy, every visitor to their page downloads it from you — on your bandwidth bill, and showing your asset in a context you didn't approve. For a small business it's rarely catastrophic, but it's free money out the door, and CORP ('same-origin') stops it at the browser level. It also closes a subtle data-leak path that advanced (Spectre-class) browser attacks rely on.

What does 'good' look like for each of these?

COOP: a Cross-Origin-Opener-Policy header set to 'same-origin'. CORP: a Cross-Origin-Resource-Policy header set to 'same-origin'. COEP: a Cross-Origin-Embedder-Policy header — and if you set it at all, 'credentialless' is the safer value than 'require-corp'. Our report simply notes whether each is present and what it's set to; it never penalises you for a missing one. Aim for COOP and CORP present; leave COEP absent unless you've tested it.