Skip to main content
HeadersMedium PriorityFree

Cross-Origin Resource Isolation

Updated November 2026·SecScanner Team

Cross-origin isolation headers (COEP, COOP, CORP) enable powerful features like SharedArrayBuffer while protecting against Spectre attacks.

92% of the 101 most-visited sites we scan fail this check. See the full data.

Results in 1–3 minutes · Free · No signup required

Want the result for your own site? Free Security Headers Checker — paste your domain, get the report.

Why It Matters

These headers protect against side-channel attacks like Spectre that can leak data across origins. They're required for certain high-performance APIs.

How We Check

We analyze Cross-Origin-Embedder-Policy, Cross-Origin-Opener-Policy, and Cross-Origin-Resource-Policy headers for proper configuration.

Good vs Bad Values

Good and bad values for Cross-Origin Resource Isolation
ValueVerdictWhy
COEP: require-corp + COOP: same-originGoodBoth headers present, so `window.crossOriginIsolated` is true and SharedArrayBuffer plus high-resolution timers become available. The strictest and best-understood combination.
COEP: credentialless + COOP: same-originGoodAlso achieves isolation, with a more forgiving embedder policy: cross-origin no-cors requests are sent without cookies instead of needing a CORP header on every third-party file.
COEP: require-corp onlyBadThe scanner needs both headers. Without COOP the page still shares a browsing context group with cross-origin windows, so it is not isolated.
COOP: same-origin onlyBadHalf of the pair. The browsing context is separated from other origins, but the page can still load cross-origin resources without opt-in, so it is not isolated.
COEP: unsafe-none + COOP: same-originBadunsafe-none is the default and gives no embedder restriction, so the combination does not isolate the page.
COOP: same-origin-allow-popups + COEP: require-corpBadA useful COOP value for sites that depend on popups, but it does not enable cross-origin isolation, and the scanner expects same-origin here.
COEP: require-corp + COOP: same-origin, with third-party images lacking CORPWeakIsolation is on, but those images are blocked. Switch to credentialless or serve the images from a source that sends CORP.
Neither header presentBadNormal for most sites. The page cannot use SharedArrayBuffer, and the browser keeps coarsened timers as a Spectre mitigation.

How to Fix

Add Cross-Origin-Embedder-Policy: require-corp, Cross-Origin-Opener-Policy: same-origin, and Cross-Origin-Resource-Policy: same-origin for full isolation.

Nginx:

add_header Cross-Origin-Opener-Policy "same-origin" always;
add_header Cross-Origin-Embedder-Policy "require-corp" always;

Apache (requires mod_headers):

Header always set Cross-Origin-Opener-Policy "same-origin"
Header always set Cross-Origin-Embedder-Policy "require-corp"

Next.js — next.config.js, scoped to the route that needs isolation so the rest of the site is not affected:

module.exports = {
  async headers() {
    return [{
      source: "/editor/:path*",
      headers: [
        { key: "Cross-Origin-Opener-Policy", value: "same-origin" },
        { key: "Cross-Origin-Embedder-Policy", value: "require-corp" },
      ],
    }];
  },
};

Cloudflare: two Transform Rules (Modify Response Header) for the paths that need isolation. Rollout that does not break pages: send Cross-Origin-Embedder-Policy-Report-Only: require-corp first, with a Reporting-Endpoints header, and read which resources would be blocked. Each blocked resource needs either Cross-Origin-Resource-Policy: cross-origin from its host, CORS (crossorigin attribute plus Access-Control-Allow-Origin), or a switch to credentialless.

Verify by opening DevTools and running window.crossOriginIsolated; it should return true. Then check the Network and Console panels for resources blocked by COEP, which Chrome labels ERR_BLOCKED_BY_RESPONSE.

Common Mistakes

  • Treating the pair as a default hardening step. Isolation is mandatory only when you use SharedArrayBuffer, `performance.measureUserAgentSpecificMemory()` or very fine-grained timers (typically WebAssembly threads, video or audio editors). Elsewhere it is optional, and can break embeds.
  • Deploying COEP without checking every third-party asset: images, scripts, fonts, iframes and ad or analytics tags that lack CORS or CORP headers vanish from the page.
  • Setting the headers only on the home page. They must be sent on every document that needs isolation, plus on the workers and iframes that take part.
  • Using `same-origin-allow-popups` for OAuth sign-in popups and expecting isolation. That value deliberately keeps the opener relationship, so the page is not isolated; plan sign-in via redirects instead.
  • Testing only in one browser. Check `window.crossOriginIsolated` in DevTools; `credentialless` in particular has uneven browser support.
  • Forgetting that embedded payment, chat and map widgets are cross-origin iframes and must themselves cooperate with COEP (or be loaded in credentialless mode).

Frequently Asked Questions

What is Cross-Origin Resource Isolation?

Cross-origin isolation headers (COEP, COOP, CORP) enable powerful features like SharedArrayBuffer while protecting against Spectre attacks.

Why does Cross-Origin Resource Isolation matter for website security?

These headers protect against side-channel attacks like Spectre that can leak data across origins. They're required for certain high-performance APIs.

How do I fix Cross-Origin Resource Isolation issues?

Add Cross-Origin-Embedder-Policy: require-corp, Cross-Origin-Opener-Policy: same-origin, and Cross-Origin-Resource-Policy: same-origin for full isolation.

Related Security Checks

Related Tool

Security Headers Checker

Run all 10 related checks with our free security headers checker

Check Your Website Now

Run a free security scan to check for Cross-Origin Resource Isolation issues and 61 other security checks.

Scan Your Website Free