Skip to content
ClickJack Test

← Blog

ERR_BLOCKED_BY_RESPONSE: What It Means and How to Fix It

Published November 2026 · sourced from the Chromium source code

ERR_BLOCKED_BY_RESPONSE means Chrome got the server's answer and then refused to use it, because a header on that answer does not allow it. The most common cause is a page inside an iframe: the framed site sends X-Frame-Options or a CSP frame-ancestors rule that does not allow your page to embed it.

The server is not down, and nothing is wrong with your computer. The block is a decision the site's owner made. This page explains what you can do if you only visit the page, and how a developer finds the exact header and fixes it.

What the error means

ERR_BLOCKED_BY_RESPONSE is network error -27 in Chromium, the code base behind Chrome, Edge and Brave. The Chromium source describes it like this:

The request failed because the response was delivered along with requirements which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor checks and 'Cross-Origin-Resource-Policy' for instance).

So the request reached the server, and the server sent a response. The response carried a rule, such as “do not show me inside another site”. The page that asked for it broke that rule, so Chrome threw the response away.

Inside an iframe, Chrome does not print the code. It shows a small error page with a sad-face icon and this text:

www.example.com refused to connect.

Chrome's full error page for this code uses the heading “www.example.com is blocked” with the same “refused to connect” line. The wording is misleading. The connection worked; the response was refused. Our “refused to connect” guide covers this message for popular sites one by one.

If you see it on a site you did not build

Open the blocked page in its own tab. The framing rules only apply when a page is inside a frame. Chrome never applies X-Frame-Options or frame-ancestors to a page loaded as the main page of a tab. Right-click the link and choose “Open link in new tab”, or copy the address into the address bar.

Other things that help:

  • Tell the owner of the page that shows the frame. Their embed is broken for every visitor, not only for you. They need to use an embed address the other site allows, or link out.
  • Check the address yourself. Paste it into the iframe tester to see whether the page can be embedded and which header blocks it.

Two cases come up often. Google Search sends X-Frame-Options: SAMEORIGIN, so “www.google.com refused to connect” inside a frame is expected (see Google refused to connect). YouTube watch pages send the same header, while YouTube's /embed/ addresses do not (see YouTube refused to connect). We checked both headers on November 30, 2026.

Fixes that do not work

Many guides for this error repeat generic browser advice. Most of it cannot help, because the block comes from a header the server sends with every response.

  • Clearing the cache or cookies. The server sends the header again on the next load. Your browser has no setting that overrides it.
  • Disabling extensions. When an extension blocks a request, Chrome reports a different code, ERR_BLOCKED_BY_CLIENT. See similar errors below.
  • Changing CORS headers. Access-Control-Allow-Origin controls whether scripts may read a response. Chrome's frame check does not read it. A CORS failure is also a different error: the Network panel shows it as “CORS error”.
  • Changing the iframe tag. Attributes such as sandbox or allow do not change the result. The frame check looks only at the framed page's response headers and the origins of the pages above it.

Which header caused it

Open DevTools (F12) on the page that shows the error. Two places tell you which header was the cause.

The Console. For a blocked frame, Chrome logs a message that names the header. For a blocked image, script or other file, the error code itself has a suffix after a dot, such as net::ERR_BLOCKED_BY_RESPONSE.NotSameOrigin.

The Network panel. Find the failed request. A blocked frame usually shows (blocked:other) in the Status column. Most files blocked by the headers in the lower rows of the table below show a named reason, such as (blocked:CORP not "same-origin"), and a link to the response headers.

What you seeHeader that blocked it
Console: Refused to display '…' in a frame because it set 'X-Frame-Options' to 'sameorigin'.X-Frame-Options: SAMEORIGIN on the framed page. Only pages from its own origin may frame it.
Console: … to 'deny'.X-Frame-Options: DENY. No page may frame it.
Console: Framing '…' violates the following Content Security Policy directive: "frame-ancestors …". The request has been blocked.CSP frame-ancestors that does not list your origin. Chrome 141 and older word it as Refused to frame '…' because an ancestor violates the following Content Security Policy directive.
Console: … set multiple 'X-Frame-Options' headers with conflicting values (…). Falling back to 'deny'.Two different X-Frame-Options values, often one from the app and one from a proxy. Chrome treats this as DENY.
.NotSameOriginCross-Origin-Resource-Policy: same-origin on a file another origin tried to load.
.NotSameSiteCross-Origin-Resource-Policy: same-site on a file another site tried to load.
.NotSameOriginAfterDefaultedToSameOriginByCoepYour page sends Cross-Origin-Embedder-Policy, and a cross-origin file has no Cross-Origin-Resource-Policy header.
…ByDip or …ByCoepAndDipThe same, caused by Chrome's Document-Isolation-Policy header, or by both headers.
Network: (blocked:COEP-framed resource needs COEP header)Your page sends Cross-Origin-Embedder-Policy, and the page in your iframe does not send it too.
Network: (blocked:Sandboxed iframe's popup can't navigate to COOP page)A popup opened from a sandboxed iframe tried to load a page that sends Cross-Origin-Opener-Policy.
.SRIMessageSignatureMismatchThe response's HTTP message signature did not match the key the page expected (signature-based Subresource Integrity).

The framed page's address in these messages is its origin only, such as 'https://www.youtube.com/', not the full URL. The frame messages are covered in detail in “Refused to display in a frame”: the fix.

In automation tools

Puppeteer and other tools built on the Chrome DevTools Protocol receive a Network.loadingFailed event with errorText and blockedReason. For this error:

  • A frame blocked by X-Frame-Options or frame-ancestors arrives as errorText: "net::ERR_BLOCKED_BY_RESPONSE" with blockedReason: "other".
  • Response-header blocks have their own values: corp-not-same-origin, corp-not-same-site, the three corp-not-same-origin-after-defaulted-to-same-origin-by-… values, coep-frame-resource-needs-coep-header, coop-sandboxed-iframe-cannot-navigate-to-coop-page and sri-message-signature-mismatch.
  • The other values (csp, mixed-content, origin, inspector, integrity, subresource-filter, content-type) come from other checks. We found no path where Chrome reports them with this error.

In our test page in Brave (Chromium 158), an image blocked by Cross-Origin-Resource-Policy arrived as net::ERR_BLOCKED_BY_RESPONSE.NotSameOrigin with blockedReason: "corp-not-same-origin". The three blocked iframes arrived without a suffix.

Fix: X-Frame-Options and frame-ancestors

Only the owner of the framed page can change these headers. The page that contains the iframe cannot override them.

If you own the framed page, send a CSP frame-ancestors rule that lists every origin allowed to embed it:

Content-Security-Policy: frame-ancestors 'self' https://app.example.com

When the browser enforces a policy with frame-ancestors, it ignores X-Frame-Options. Remove an old X-Frame-Options: SAMEORIGIN or DENY anyway, so a browser that does not know frame-ancestors does not block your partner. If you saw the “conflicting values” message, the header is set in two places. Keep it in one layer only.

Setup steps for each stack: NGINX, Apache, Cloudflare, Next.js, WordPress and IIS. The full syntax is in the frame-ancestors reference.

If you do not own the framed page, you cannot remove the block. Use the site's official embed address if it has one (YouTube's /embed/ URLs, for example), or link to the page and open it in a new tab.

Fix: Cross-Origin-Resource-Policy

Cross-Origin-Resource-Policy (CORP) lets a server say which sites may load a file. For images, scripts and other files, Chrome checks it only for requests made in no-cors mode, such as <img>, <script> or <video> without a crossorigin attribute. A normal fetch() call uses CORS mode, so CORP does not apply to it.

The fix belongs to the server that hosts the file. If other sites should be able to load it, send:

Cross-Origin-Resource-Policy: cross-origin

Use same-site instead to allow only your own subdomains. If you do not own the file, ask the owner, or host your own copy where the license allows it.

Fix: Cross-Origin-Embedder-Policy

The suffixes that end in ByCoep mean the block comes from your page. With Cross-Origin-Embedder-Policy: require-corp, a cross-origin file without a CORP header is treated as if it had Cross-Origin-Resource-Policy: same-origin, so Chrome blocks it. You have three options:

  1. Ask the file's server to send Cross-Origin-Resource-Policy: cross-origin.
  2. Load the file in CORS mode: add the crossorigin attribute to the tag. The server must then allow your origin with CORS headers.
  3. Use Cross-Origin-Embedder-Policy: credentialless. Chrome then loads no-cors files without a CORP header, but sends those requests without cookies.

Iframes follow a stricter rule. A page loaded in an iframe inside a require-corp page must send its own Cross-Origin-Embedder-Policy, and a cross-origin framed page also needs a Cross-Origin-Resource-Policy header that allows your origin.

ERR_BLOCKED_BY_RESPONSE vs ERR_BLOCKED_BY_CLIENT and ERR_BLOCKED_BY_ORB

The three codes look alike, but a different party blocks the request in each case.

CodeWho blocked itWhere to look
ERR_BLOCKED_BY_RESPONSE (-27)A header on the server's response, enforced by the browser.The response headers of the blocked page or file.
ERR_BLOCKED_BY_CLIENT (-20)The browser itself or an extension, such as an ad blocker. The server's headers play no part.Your extensions. Try a window with extensions turned off.
ERR_BLOCKED_BY_ORB (-32)Opaque Response Blocking. Chrome refused a cross-origin no-cors response that looks like data, such as HTML or JSON, where the page expected an image, script, stylesheet or media.The file's address and its Content-Type. Check whether the URL returns an HTML page, such as an error or login page, instead of the file.

Chromium defines ERR_BLOCKED_BY_CLIENT as “The client chose to block the request.” Requests that an extension blocks through the webRequest or declarativeNetRequest APIs fail with this code.

Check a URL before you embed it

Paste the address into the iframe tester. It loads the page in a frame and shows which header blocks it. You can also read the headers from a terminal:

curl -s -o /dev/null -D - https://www.example.com/ | grep -iE 'x-frame-options|content-security-policy|cross-origin'

To test your own site from the other side, run the ClickJack Test. It shows whether other sites can frame your pages.

Test whether a page can be embedded →

Check your headers

See whether a site sends X-Frame-Options or CSP frame-ancestors, and what browsers will do with them.