"This Content Is Blocked. Contact the Site Owner": Why an iframe Won't Load

Short answer
What does "this content is blocked" mean on a website?
The message "this content is blocked" means a page you embedded on your site inside a frame (an iframe) told the browser it does not want to appear on other websites. The browser follows that instruction and leaves the box empty. So the cause usually sits in the embedded page's security settings, not in your own site.
You added a booking calendar, a payment page or a form to your website, but the box shows only a gray icon and a line like "This content is blocked. Contact the site owner to fix the issue." For a business, that message means a customer hits an empty box at the exact moment they want to act. We understand the worry; in most cases your site is not broken. Below we diagnose the cause, separate who can fix what, and list practical ways forward.
Put simply, an iframe is an HTML element that opens one web page inside another, like a window. Maps, videos, booking calendars and payment forms often arrive this way. If the other side does not allow that window, the browser refuses to show the content and displays a notice instead.
However, the exact wording depends on the browser, language and version. In Chrome you may see this sentence or a "refused to connect" style line; Firefox and Safari use different text. Official browser documentation does not list this notice word for word, so focus on the cause behind it rather than the wording.
What does a blocked embed cost you in customers and conversions?
Technically it looks like a small glitch, but the business cost can be high. That is because the frame usually sits in the most valuable spot on the site: booking, quote, checkout or contact. Then, when a visitor sees an empty box right at the decision point, they rarely tell you; they close the tab.
Also, this loss hides well in reports. The page loads, so visits look normal, while form or booking conversions quietly drop. If you run ads, part of the budget you pay per click flows straight into that empty box.
So watch for three signals:
- Visits to the booking or form page stay flat while completed actions drop.
- Customers tell you on the phone that they could not book online.
- Visitors from one particular browser convert far worse than everyone else.
If you notice one of these, then test the page yourself on different devices. Finding the problem before a customer reports it is always cheaper.
When does this error appear: booking, payments, forms, maps?
On business websites, we see this error most often with these embeds:
- Booking or reservation tools: when you put the service's regular page address into a frame.
- Payment pages: when you try to open a page your payment provider hosts inside your own site.
- Forms and surveys: when you paste the share link into a frame instead of the embed code.
- Maps and videos: when you copy the address bar URL instead of the service's embed URL.
- Your other website: when you pull your second site in while its own security settings forbid framing.
What these cases share is simple: the content comes from another server, not yours. Therefore the decision depends on the settings that server sends. That said, in some cases your own site's settings or the browser's cookie rules play a part too. We separate them one by one below.
Is "this content is blocked" the same as "refused to connect"?
They usually share a cause, but people often confuse three other errors with it. Separating them is the first step toward a correct diagnosis.
- A "refused to connect" style line inside the frame: this usually means the embedded page switched off framing. You may also see a code such as ERR_BLOCKED_BY_RESPONSE in the developer console.
- A connection refusal for the whole page: this is a different problem where the server does not accept the connection at all. See our guide to ERR_CONNECTION_REFUSED for details.
- An empty spot caused by an ad blocker: a browser extension stops the content. We cover that in our guide to ERR_BLOCKED_BY_CLIENT.
- A CORS error: it appears when a script on your page requests data from another server, and it has nothing to do with framing. For that one, read how to fix a CORS error.
In short, first confirm which error you face. If only the box is empty and the rest of the page works, you are most likely dealing with frame permissions.
How does the X-Frame-Options header stop a frame?
First, some background: when a server sends a page, it attaches notes the visitor never sees; these are HTTP headers. According to the MDN documentation on X-Frame-Options, this header tells the browser whether a page may render inside a frame. It has two valid values:
X-Frame-Options: DENYmeans the page cannot load in any frame, not even on the same site.X-Frame-Options: SAMEORIGINmeans the page loads only in frames on pages with the same origin.
A third value, ALLOW-FROM, is now obsolete, so skip it. MDN notes that modern browsers ignore the whole header when they see it. Also, you cannot set this header through a meta tag in the page's HTML; it works only in the server response.
So what does it mean for you in practice? If the page you embed sends this header, nothing you do on your own site will open it in a frame. In other words, the decision lives on the other server. Adding this header to your own site so others cannot frame you is a separate topic, which we cover in our guide on clickjacking protection.
What does Content-Security-Policy frame-ancestors change?
Content-Security-Policy, or CSP, is a broader security header that defines which resources a page may work with. Its frame-ancestors directive states which sites may embed the page. The MDN frame-ancestors reference shows three typical uses:
frame-ancestors 'none'means no site can embed the page.frame-ancestors 'self'means only the page's own origin can embed it.frame-ancestors 'self' https://example.commeans the page's own origin and the listed site can embed it.
In practice, this directive offers more flexibility than X-Frame-Options, because it can allow specific sites. MDN notes that 'none' works much like X-Frame-Options DENY. Also, frame-ancestors does not work in a meta tag either; it must arrive as a server header.
For a business owner, the key point is this: some services let customers add their own domain to that list. If the service dashboard has a section like "allowed domains," entering your site's address there may solve the problem. If no such option exists, ask the service's support team how they support embedding.
Why would the other side turn off framing on purpose?
This part reassures most business owners: the block is usually a deliberate security choice, not a bug. For example, attackers can place a trusted page inside a transparent frame and trick users into clicking without noticing. People call this clickjacking, and X-Frame-Options and frame-ancestors exist precisely to stop it.
That is why login, payment and account settings pages in particular refuse framing. A bank or payment provider does not want the page where people type card details to open inside someone else's site. Because the visitor cannot see the address bar, they also cannot confirm who really owns the page.
So asking the other side to "turn off the security setting" is not a realistic request. In fact, a well-run service will simply say no, because security comes first. The better question is: "What official method do you recommend for showing your content on my site?" Most services have a ready answer.
Could your own site's settings stop the frame?
Yes, and people often miss it, so check it early. If your site's own CSP header includes a frame-src directive, that directive limits which addresses frames on your pages may load from. The MDN frame-ancestors page draws a clear line between the two: one answers "who may embed me," the other answers "whom may I embed."
If a security plugin or server configuration keeps that list narrow, a booking service you just added will not load because it is not on the list. In that case the fix is in your hands: add the service's domain to the allowlist.
Next, a second possible cause is the sandbox attribute in the iframe code. According to the MDN iframe reference, an empty sandbox applies all restrictions; scripts do not run, forms do not send data, and popups silently fail. If the box appears but the form does nothing, check this attribute. If nobody clearly owns your site's security headers and plugins, that question eventually becomes part of your web design services decisions; for now, asking your developer about these two settings is enough.
Why does an HTTP frame stay empty on an HTTPS page?
If your site runs on HTTPS, meaning an encrypted connection, but the frame address starts with http, the browser will not load the frame. The MDN guide to mixed content lists iframes among blockable content, not among content the browser upgrades automatically. Browsers try to switch some items, such as images and video, to https on their own; they do not do that for frames.
Fortunately, this cause usually has the easiest fix, so start here:
- Check whether the address in the frame code starts with http or https.
- Change it to https and test the page again.
- If the service does not support https, reconsider using it for payments or forms at all.
If you see the same problem elsewhere on the site, our guide to the mixed content error gives the full picture. It includes a checklist that covers images, scripts and stylesheets too.
How do third-party cookies break the session inside a frame?
Sometimes the frame does appear, but the login inside it never lets you in, or it jumps back to the start on every click. Third-party cookie restrictions are often behind this. A third-party cookie belongs to a domain other than the site you are visiting; on your site, the embedded service's cookie falls into that group.
The MDN guide to third-party cookies explains that browsers restrict these cookies in different ways. Firefox and Safari separate or limit them through default protections; in Chrome, behavior depends on user settings and Incognito mode. These behaviors change over time, so check the browser vendor's current documentation.
For example, the symptoms usually look like this:
- After you log in inside the frame, the page asks you to log in again.
- A cart or selection resets when you move to the next step.
- A frame that works in one browser fails in another or in a private window.
However, you cannot fix this from your own site. How the cookie works is a decision inside the service's code. MDN describes cookie settings such as SameSite and Partitioned, plus a permission mechanism called the Storage Access API, for service providers. Your job is to report these symptoms clearly to the service, or to open the step that needs a login in a new tab.
Could a cookie consent tool hold the frame back?
Yes, and that is often intentional, because privacy rules can require it. Some consent tools hold back map, video or chat frames that process personal data until the visitor agrees. If the visitor declines or closes the banner, the box may stay empty, or a placeholder like "accept cookies to view this content" appears.
Whether this behavior is a bug or correct configuration depends on your legal obligations. This is not legal advice; confirm your consent requirements with your attorney. On the technical side, check these points:
- Which category does the embedded service sit in within the consent tool?
- Once a visitor agrees, does the frame load without a page refresh?
- If a visitor declines, do they still get another route, for example an "open in a new tab" link?
Also, the banner's design shapes this experience. For a compliant and friendly banner, see our guide to cookie banner design; for its effect on speed, read about a cookie consent banner hurting Core Web Vitals.
How do you diagnose "this content is blocked" in five minutes?
Even without a developer, these steps narrow the cause down a lot:
- Copy the frame's address and open it directly in a new tab. If the page works there, the problem lies in frame permissions or your own site's settings, not in the content.
- Check whether the address starts with http or https.
- Try the site in a private window and in another browser. If the result changes, think cookies or extensions.
- Turn off your ad blocker for a moment and test again.
- Accept all permissions in the cookie banner and reload the page.
- Open the browser's developer tools and look at the console tab. A line that mentions X-Frame-Options, frame-ancestors or frame-src points straight at the cause.
The sixth step may sound intimidating, but you only need to read. If you screenshot that console line and send it to your developer or the service's support team, the exchange takes minutes instead of days. During these steps you change no settings; you only observe.
Which symptom points to which cause, and who fixes it?
The diagnosis table below matches each symptom with a likely cause and shows honestly who can handle it.
| Symptom | Likely cause | Who fixes it? |
|---|---|---|
| The box says "blocked" or "refused to connect," and the address works in a new tab. | The embedded page sends X-Frame-Options or frame-ancestors. | Usually the other service. You can use the official embed code or a link. |
| The box stays completely empty, and the address starts with http. | Mixed content rules. | You. Switching the address to https is often enough. |
| It fails only on your site, and the console mentions frame-src. | Your own site's CSP setting. | A developer. They add the service's domain to the allowlist. |
| The box appears, but the form sends nothing. | A sandbox restriction in the iframe code. | A developer. They open the required permissions carefully. |
| Login loops back, and nothing works in a private window. | Third-party cookie restrictions. | Usually the other service. You can open the step in a new tab. |
| Empty before consent, working after consent. | The consent tool's configuration. | You or a developer. Adjust the tool's category settings. |
In other words, the table is a starting point. Sometimes two causes act at once; for example, after you fix an http address, a frame permission block may surface next.
Why is the service's official embed code the first fix?
For instance, many services switch off framing for their regular pages but offer a separate embed URL or ready-made code. That address exists to appear on other sites, so its frame permissions fit that purpose. Most errors we see on business sites come from copying the address bar URL.
So to find the right code, look in the service dashboard for a section such as "share," "embed" or "add to your website." Menu names change; if you cannot find it, search the service's help center for "embed."
In addition, the official code usually brings these benefits:
- Frame permission for your domain is open from the start.
- The service has already tested mobile size, height and scrolling behavior.
- When the service updates, the code often keeps working.
Speed matters when you embed maps, too. We cover that in our guide on whether embedding Google Maps slows down a website.
When is a link or a new tab better than a frame?
Still, you do not have to show every piece of content inside your site. In some cases a well-designed button works better than a frame. For instance, if the service refuses framing, requires a login or takes payments, sending the visitor to the service's own page in a new tab is both safe and clear.
To do this well:
- Make the button text say what opens, for example "Open the booking calendar."
- Add a short note next to the button that names the service the page belongs to.
- Give visitors a way back to your site when they finish; many services offer a return URL setting.
- Make sure your conversion tracking counts this click as its own event.
That way the visitor sees a clear next step instead of an empty box. Cookie and session issues also disappear, because the service runs on its own domain as a first party. We explain how to structure booking and quote steps in our guide to booking and quote form design.
Does your own subdomain solve the problem?
Additionally, some services let you publish their pages on a subdomain of your own domain, for example booking.example.com. This option can help with two things, but it does not solve everything.
First, it helps with cookies. Browsers generally treat subdomains of the same main domain as the same site, so cookies may run into fewer third-party restrictions. Visitors also see your brand in the address bar, which builds trust.
On the other hand, it does not solve frame permissions. Framing works per origin, and a subdomain and your main site are different origins. If the service does not add your main site to its frame-ancestors list, the subdomain will not load in a frame either. So weigh the subdomain option together with the service's embed support. Setup usually means adding a small record in your domain's DNS settings; follow the service's instructions for it.
What should you write to the service's support team?
If the problem sits on the other side, the quality of your message decides how fast you get a solution. A vague line like "it does not work on my site" rarely earns more than a link to a generic help article. Instead, give concrete details:
- The address of the page that holds the frame, and the address inside the frame.
- The browsers you tested, and whether a private window changes the result.
- A screenshot of the console line from the developer tools.
- The step where the problem appears: does it never load, stall at login, or stop at checkout?
- An open question: "What official embed method do you recommend for showing your content on my site?"
That last question matters, because it moves the conversation from "turn off your setting" to "show me the right method." As a result, the support team offers a solution instead of a defense. Until you get an answer, do not leave visitors with an empty box; add a button that opens the page in a new tab for now.
Why is framing a payment page usually a bad idea?
Payment pages that providers host usually refuse framing, because that is where people enter card details. Specifically, this is the provider's security and fraud prevention decision, and it will not change because you ask.
So two routes stand out for payments. First, a payment form or component the provider offers specifically for embedding. Second, sending the visitor to the provider's own page and bringing them back to your site after the transaction. The provider's official integration documentation tells you which one fits.
An extra verification screen inside a framed payment step can also cause trouble. If card verification never completes, our guide on 3D Secure authentication failures covers the reasons in detail. Instead of experimenting on live payments, use the provider's test environment.
Sample scenario: a gym whose booking box stays empty
Here is a sample scenario. A gym wants to add its class schedule and booking calendar to its website. The manager copies the address of the page the booking service opens in the browser and places it in a frame on the site. On desktop, the box shows a "this content is blocked" style notice.
First, the manager opens the address in a new tab, and the page works fine. In the console, a line mentions frame-ancestors, so the manager sends a screenshot to the service's support team. Support replies that the regular page refuses framing and that the dashboard offers a separate embed code.
The manager adds the official code, and the box now works. Then, in a private window, the login step keeps looping back. This time the fix is a button that opens the member login in a new tab. The lesson: one empty box can hide two separate causes, and each has a different owner.
What are the most common mistakes?
Businesses that run into this error often fall into these traps:
- Putting the address bar URL into the frame instead of looking for the service's embed code.
- Adding X-Frame-Options to your own site and expecting the other side's block to disappear; that header only protects your own page.
- Trying to grant permission with ALLOW-FROM; modern browsers ignore it.
- Using a meta tag for security headers; both headers work only in the server response.
- Reaching for workarounds such as browser extensions or proxy servers to escape the frame rules. That means bypassing the other service's security decision.
- Testing only in your own browser and skipping other browsers and private windows.
Above all, the fifth point matters. Routing someone else's page through another server to frame it weakens user security and may violate the service's terms of use.
How do you build the site so this does not happen again?
In most cases, this error comes from an embed someone added in a hurry, so planning helps. The lasting fix is to treat integrations as a planned part of the site from day one:
- A list of every third-party embed on the site: which service, which page, which method.
- The official embed method for each service, plus a new-tab alternative where needed.
- HTTPS on every page, and only https addresses inside frames.
- Clear ownership of security headers, and a defined way to update the allowlist when you add a service.
- Each service placed in the right category in the consent tool.
- Testing in several browsers and in a private window before launch.
Third-party content affects speed as well as framing. So add the topic of third-party scripts slowing down a website to the same list. A site built this way does not surprise you when you add a new service.
How can our team help at this point?
You can run most of the diagnosis in this guide yourself; sometimes a single https fix or the official embed code is enough. However, if your site carries dozens of plugins, security settings nobody remembers, and services each added a different way, the problem is no longer one box; it is how someone put the site together.
As Talha Aslan and team, we plan information architecture and the conversion flow from the start, and we treat integrations such as booking, payments and CRM as part of the scope. We use lean custom code instead of a bloated theme and plugin stack, track form, WhatsApp and call clicks from day one, and deliver documented code that another developer can take over. We do not write code before you approve the design, and you see every page in a test environment before launch.
If you want a site with integrations planned properly from the start, our corporate website design page explains the scope and process. Fix today's empty box first; there is no need to rush the bigger decision.



