{"id":1667,"date":"2026-11-25T14:26:07","date_gmt":"2026-11-25T14:26:07","guid":{"rendered":"https:\/\/www.ahosting.net\/blog\/?p=1667"},"modified":"2026-11-25T21:30:13","modified_gmt":"2026-11-25T21:30:13","slug":"refused-to-display-in-a-frame-wordpress","status":"publish","type":"post","link":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/","title":{"rendered":"Refused to Display in a Frame in WordPress: Who Sent the Header and How to Allow One Site (2026)"},"content":{"rendered":"\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"What does refused to display in a frame mean, and what are the X-Frame-Options values in 2026?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Specifically, it means the browser loaded a page for an iframe and then declined to draw it because that page sent a header forbidding the embedding. X-Frame-Options accepts DENY, which blocks every parent, and SAMEORIGIN, which allows only the same origin. ALLOW-FROM is obsolete and modern browsers ignore it. The message prints in the console of the embedding page, and the blocked site logs nothing, as the decision table above shows.\"}}, {\"@type\": \"Question\", \"name\": \"Refused to display in a frame: X-Frame-Options vs frame-ancestors, which one wins in Chrome?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"In practice, frame-ancestors wins. In our Chrome 158 lab a page that sent X-Frame-Options DENY together with a frame-ancestors list naming the parent loaded normally, because the browser ignores the older header once a frame-ancestors policy is present. The Chromium source returns early for that case. Send one header, not both.\"}}, {\"@type\": \"Question\", \"name\": \"Why does refused to display in a frame appear on my WordPress login page in 2026?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Typically because WordPress core sends X-Frame-Options SAMEORIGIN and a frame-ancestors policy limited to the site itself on wp-login.php and on wp-admin. In WordPress 7.1.5 both come from one function that runs on the login and admin hooks. Any page on another origin that frames the login form is refused, which is the clickjacking protection working as designed.\"}}, {\"@type\": \"Question\", \"name\": \"Why is refused to display in a frame still showing after I removed X-Frame-Options from WordPress?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Indeed, removing only that header changes nothing in Chrome. WordPress sends a frame-ancestors policy from the same function, and in our lab the login page stayed blocked with only that policy left. Replace both headers, or remove the core hooks at the right moment, as the section on allowing one named site shows.\"}}, {\"@type\": \"Question\", \"name\": \"Does SAMEORIGIN treat www vs the bare domain as the same site in 2026?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Specifically, no. Origin means scheme, host and port, so www.example.com, example.com and a subdomain are three different origins. In our lab a page on a subdomain was refused when it framed its parent, under both SAMEORIGIN and a self-only frame-ancestors policy. The same applies to http against https.\"}}, {\"@type\": \"Question\", \"name\": \"Which WordPress hooks send the headers behind refused to display in a frame, and at what priority?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Specifically, core runs send_frame_options_header on admin_init and on login_init, both at priority 10 in WordPress 7.1.5. The Customizer adds its own filter that sets the same pair for the preview. Core sends nothing on front-end pages, so a public page that refuses to be framed is getting its header from the server, a plugin or a CDN.\"}}, {\"@type\": \"Question\", \"name\": \"Does AHosting send X-Frame-Options on its own pages, and what did we measure in 2026?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Overall, yes. A curl check on 2026-11-24 showed the AHosting home page and the blog home both answering with X-Frame-Options SAMEORIGIN and a content security policy ending in a frame-ancestors rule for the site itself. WordPress core sends nothing on those pages, so the headers are set outside core. Other sites cannot frame those pages.\"}}, {\"@type\": \"Question\", \"name\": \"How do I allow one partner site past refused to display in a frame on an AHosting WordPress plan?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"In practice, replace both headers on the login and admin hooks with one frame-ancestors policy that names the partner origin, using a small must-use plugin. That changes only what WordPress sends. A header added by the server or the CDN is a separate layer and has to be changed where it is set. Test with curl after the change.\"}}, {\"@type\": \"Question\", \"name\": \"How can I check which headers my AHosting site returns before embedding it in 2026?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Fortunately, one curl command shows them. Run curl with the head option against the exact URL you plan to frame, then look at X-Frame-Options and Content-Security-Policy on a 200 response, not on an error page. The browser console of the embedding page then confirms which rule fired.\"}}, {\"@type\": \"Question\", \"name\": \"Is the X-Frame-Options header deprecated, and do browsers still support ALLOW-FROM?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"In fact, DENY and SAMEORIGIN still work, but frame-ancestors is the replacement and ALLOW-FROM is obsolete. In our Chrome 158 lab a page sending ALLOW-FROM with the parent origin loaded, and the console said the value is not a recognized directive and the header would be ignored. To allow one named site, use frame-ancestors.\"}}]}<\/script>\n\n\n<div class=\"wp-block-aioseo-table-of-contents\"><ul><li><a class=\"aioseo-toc-item\" href=\"#what-refused-to-display-in-a-frame-means\">What Refused to Display in a Frame Means in WordPress<\/a><ul><li><a class=\"aioseo-toc-item\" href=\"#aioseo-where-the-message-prints\">Where the Message Prints<\/a><\/li><\/ul><\/li><li><a class=\"aioseo-toc-item\" href=\"#refused-to-display-in-a-frame-which-side\">Refused to Display in a Frame: Which Side Is Saying No?<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#what-wordpress-sends-frame-headers\">What WordPress Sends, and on Which Pages<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#how-chrome-decided-refused-to-display-in-a-frame\">How Chrome 158 Decided in Our Refused to Display in a Frame Lab<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#why-www-subdomain-http-count-as-another-origin\">Why www, a Subdomain or http Still Counts as Another Site<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#allow-one-named-site-to-frame-wordpress\">How to Allow One Named Site to Frame WordPress Pages<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#when-the-header-does-not-come-from-wordpress\">When the Header Does Not Come From WordPress<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#refused-to-display-in-a-frame-fix-checklist\">Refused to Display in a Frame: Fix Checklist<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#faq-refused-to-display-in-a-frame-wordpress\">Frequently Asked Questions: Refused to Display in a Frame<\/a><ul><li><a class=\"aioseo-toc-item\" href=\"#faq-what-does-refused-to-display-in-a-frame-mean\">What does refused to display in a frame mean, and what are the X-Frame-Options values in 2026?<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#faq-x-frame-options-vs-frame-ancestors-which-wins\">Refused to display in a frame: X-Frame-Options vs frame-ancestors, which one wins in Chrome?<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#faq-refused-to-display-in-a-frame-wordpress-login-2026\">Why does refused to display in a frame appear on my WordPress login page in 2026?<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#faq-still-refused-to-display-in-a-frame-after-removing-x-frame-options\">Why is refused to display in a frame still showing after I removed X-Frame-Options from WordPress?<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#faq-samesite-www-vs-bare-domain-same-origin-2026\">Does SAMEORIGIN treat www vs the bare domain as the same site in 2026?<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#faq-which-wordpress-hooks-send-refused-to-display-in-a-frame-headers\">Which WordPress hooks send the headers behind refused to display in a frame, and at what priority?<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#faq-does-ahosting-send-x-frame-options-2026\">Does AHosting send X-Frame-Options on its own pages, and what did we measure in 2026?<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#faq-allow-one-partner-refused-to-display-in-a-frame-ahosting-wordpress\">How do I allow one partner site past refused to display in a frame on an AHosting WordPress plan?<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#faq-check-headers-before-embedding-ahosting-site-2026\">How can I check which headers my AHosting site returns before embedding it in 2026?<\/a><\/li><li><a class=\"aioseo-toc-item\" href=\"#faq-is-x-frame-options-deprecated-allow-from-supported\">Is the X-Frame-Options header deprecated, and do browsers still support ALLOW-FROM?<\/a><\/li><\/ul><\/li><\/ul><\/div>\n\n\n<div class=\"ah-tldr\">\n  <span class=\"ah-tldr-badge\">TL;DR<\/span>\n  <p>Refused to display in a frame means a browser would not draw a page inside an iframe because that page&#8217;s response said no. The message prints in the console of the embedding page, and the blocked site logs nothing. WordPress core sends X-Frame-Options SAMEORIGIN plus a frame-ancestors policy on wp-login.php and wp-admin only. In our Chrome 158 lab, removing just the old header left the login page blocked, while a frame-ancestors header naming one site loaded it.<\/p>\n<\/div>\n\n\n\n<figure class=\"wp-block-audio\"><audio preload=\"none\" controls src=\"https:\/\/www.ahosting.net\/blog\/wp-content\/uploads\/2026\/11\/PODCAST-refused-to-display-in-a-frame-wordpress.m4a\"><\/audio><figcaption class=\"wp-element-caption\">Listen: what the error means, where it prints and which header decides. By Matt Chrust, Director of Business Development, AHosting.<\/figcaption><\/figure>\n\n\n\n<h2 id=\"what-refused-to-display-in-a-frame-means\" class=\"wp-block-heading\">What Refused to Display in a Frame Means in WordPress<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Refused to display in a frame means a browser fetched a page for an iframe and then declined to draw it, because the response carried a header forbidding that embedding. The full Chrome line reads Refused to display &#8216;URL&#8217; in a frame because it set &#8216;X-Frame-Options&#8217; to &#8216;sameorigin&#8217;. Nothing is broken on the server. The page loaded, and the browser obeyed the page&#8217;s own instruction.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Two headers can carry that instruction. X-Frame-Options is the older one and takes DENY or SAMEORIGIN. The Content-Security-Policy frame-ancestors directive is the newer one and can name the sites allowed to embed the page. <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Reference\/Headers\/X-Frame-Options\" target=\"_blank\" rel=\"noopener\">MDN&#8217;s X-Frame-Options reference<\/a> calls the ALLOW-FROM value obsolete and points to frame-ancestors instead. Both exist to stop clickjacking, where an attacker frames your login page invisibly under their own page.<\/p>\n\n\n\n<h3 id=\"aioseo-where-the-message-prints\" class=\"wp-block-heading\">Where the Message Prints<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The line appears in the DevTools console of the embedding page, not on the site that said no. If you own site A and embed site B, you see the error on A while B logs nothing. That is why a search of your server logs finds nothing: the request ended in a 200. The fix belongs to whoever controls the headers of B, which is you only when you run both.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"ah-yt\" data-id=\"MYVolu3_jPo\" data-title=\"Refused to Display in a Frame in WordPress: Fix It (2026)\"><img src=\"https:\/\/i.ytimg.com\/vi\/MYVolu3_jPo\/hqdefault.jpg\" alt=\"\" width=\"480\" height=\"360\" loading=\"lazy\" decoding=\"async\"><button type=\"button\" class=\"ah-yt-play\" aria-label=\"Play video: Refused to Display in a Frame in WordPress: Fix It (2026)\"><span aria-hidden=\"true\"><\/span><\/button><\/div>\n<\/div><\/figure>\n\n\n\n<h2 id=\"refused-to-display-in-a-frame-which-side\" class=\"wp-block-heading\">Refused to Display in a Frame: Which Side Is Saying No?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Read the headers of the framed page, not the embedding page. From a terminal, swap in the framed URL:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -sI https:\/\/example.com\/page\/ | grep -i -E \"x-frame-options|content-security-policy\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Read them from a 200 response. Our own curl of a wp-login.php URL answered 403 on 2026-11-24, so we did not treat its headers as the login page&#8217;s. <a href=\"https:\/\/www.ahosting.net\/blog\/403-forbidden-you-dont-have-permission-to-access-this-resource\/\">Reading the log behind a 403<\/a> explains why an error page cannot vouch for the real one. If you would rather not use a terminal, <a href=\"https:\/\/securityheaders.com\/\" target=\"_blank\" rel=\"noopener\">securityheaders.com<\/a> analyzes the response headers of a public URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then check for frame-ancestors first. When the response contains that policy, the browser ignores X-Frame-Options. The Chromium source for the check, <a href=\"https:\/\/raw.githubusercontent.com\/chromium\/chromium\/73d1984cb1c86e80a8b5a7cb215e130ca4f75095\/content\/browser\/renderer_host\/ancestor_throttle.cc\" target=\"_blank\" rel=\"noopener\">ancestor_throttle.cc<\/a>, returns early in that case (lines 263 to 267).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A similar error comes from the other direction. A frame-src directive on the embedding page limits which sites that page may load into frames, while frame-ancestors on the framed page limits who may embed it. It is also not CORS. Fonts and fetch calls fail on Access-Control-Allow-Origin, covered in <a href=\"https:\/\/www.ahosting.net\/blog\/font-blocked-by-cors-policy-wordpress\/\">Blocked by CORS Policy in WordPress<\/a>, and a frame has its own pair of headers. A store that embeds a booking or support page from another site meets the same rule, and the framed page&#8217;s owner decides, even when the store sits on a <a href=\"https:\/\/www.ahosting.net\/woocommerce-hosting.html\">WooCommerce hosting plan<\/a>.<\/p>\n\n\n\n<h2 id=\"what-wordpress-sends-frame-headers\" class=\"wp-block-heading\">What WordPress Sends, and on Which Pages<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Core has one function for this. <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/send_frame_options_header\/\" target=\"_blank\" rel=\"noopener\">send_frame_options_header()<\/a> in wp-includes\/functions.php sends X-Frame-Options: SAMEORIGIN and Content-Security-Policy: frame-ancestors &#8216;self&#8217; together, at lines 7282 to 7287 in WordPress 7.1.5, and only if headers have not been sent yet. Core hooks it to admin_init (wp-admin\/includes\/admin-filters.php, line 47) and login_init (wp-includes\/default-filters.php, line 398), both at priority 10. The Customizer adds its own filter for the preview in class-wp-customize-manager.php (lines 1970 to 1980) that sets the same pair.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We probed a real WordPress 7.1.5 install on PHP 8.5.10 with curl and a logged-in cookie.<\/p>\n\n\n\n<figure class=\"wp-block-table ah-ladder\"><table><thead><tr><th>URL<\/th><th>X-Frame-Options<\/th><th>frame-ancestors policy<\/th><th>Who WordPress lets frame it<\/th><\/tr><\/thead><tbody><tr><td>Home page and single post<\/td><td>none<\/td><td>none<\/td><td>Not restricted by WordPress<\/td><\/tr><tr><td>REST root and embed URL<\/td><td>none<\/td><td>none<\/td><td>Not restricted by WordPress<\/td><\/tr><tr><td>admin-ajax.php<\/td><td>none<\/td><td>none<\/td><td>Not restricted by WordPress<\/td><\/tr><tr><td>wp-login.php<\/td><td>SAMEORIGIN<\/td><td>&#8216;self&#8217;<\/td><td>Same origin only<\/td><\/tr><tr><td>wp-admin (logged in)<\/td><td>SAMEORIGIN<\/td><td>&#8216;self&#8217;<\/td><td>Same origin only<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Frame headers sent by stock WordPress 7.1.5, lab probe, 2026-11-24<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">So the front end is not WordPress&#8217;s doing. When a public page refuses to be framed, the header comes from the server, a security plugin or a CDN. A curl on 2026-11-24 showed www.ahosting.net answering its home page and its blog with X-Frame-Options SAMEORIGIN and a policy ending in frame-ancestors &#8216;self&#8217;, although core sends nothing on those pages.<\/p>\n\n\n\n<h2 id=\"how-chrome-decided-refused-to-display-in-a-frame\" class=\"wp-block-heading\">How Chrome 158 Decided in Our Refused to Display in a Frame Lab<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We framed one page from a different origin eleven ways in headless Chrome 158 (nginx 1.31.6, one machine). Five setups loaded and six were blocked.<\/p>\n\n\n\n<div class=\"ah-infographic\">\n<svg viewBox=\"0 0 720 330\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" role=\"img\" aria-label=\"The browser requests the framed page, reads the response headers, lets frame-ancestors decide if it is present, otherwise lets X-Frame-Options decide, then renders or refuses and prints the message in the embedding page console\">\n<title>How the browser decides to refuse a frame<\/title>\n<desc>Four boxes in a row: the embedding page asks for a URL in an iframe, the framed server answers 200 with headers, the browser checks for a frame-ancestors policy, and the browser renders or refuses. Below the third box two branches: if frame-ancestors is present it decides and X-Frame-Options is ignored; if it is absent X-Frame-Options decides. A note at the bottom says the refusal message is printed in the console of the embedding page.<\/desc>\n<rect x=\"0\" y=\"0\" width=\"720\" height=\"330\" rx=\"12\" fill=\"#f8fafc\"\/>\n<text x=\"24\" y=\"36\" font-family=\"Arial, sans-serif\" font-size=\"16\" font-weight=\"700\" fill=\"#0f172a\">One response, one verdict, printed on the other site<\/text>\n<rect x=\"24\" y=\"62\" width=\"150\" height=\"58\" rx=\"8\" fill=\"#e2e8f0\"\/>\n<text x=\"99\" y=\"88\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"13\" fill=\"#0f172a\">Embedding page<\/text>\n<text x=\"99\" y=\"106\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"11\" fill=\"#475569\">asks for the URL<\/text>\n<line x1=\"174\" y1=\"91\" x2=\"198\" y2=\"91\" stroke=\"#64748b\" stroke-width=\"2\"\/>\n<rect x=\"198\" y=\"62\" width=\"150\" height=\"58\" rx=\"8\" fill=\"#e2e8f0\"\/>\n<text x=\"273\" y=\"88\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"13\" fill=\"#0f172a\">Framed server<\/text>\n<text x=\"273\" y=\"106\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"11\" fill=\"#475569\">answers 200 plus headers<\/text>\n<line x1=\"348\" y1=\"91\" x2=\"372\" y2=\"91\" stroke=\"#64748b\" stroke-width=\"2\"\/>\n<rect x=\"372\" y=\"62\" width=\"150\" height=\"58\" rx=\"8\" fill=\"#dbeafe\"\/>\n<text x=\"447\" y=\"88\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"13\" fill=\"#0f172a\">Browser reads<\/text>\n<text x=\"447\" y=\"106\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"11\" fill=\"#475569\">the response headers<\/text>\n<line x1=\"522\" y1=\"91\" x2=\"546\" y2=\"91\" stroke=\"#64748b\" stroke-width=\"2\"\/>\n<rect x=\"546\" y=\"62\" width=\"150\" height=\"58\" rx=\"8\" fill=\"#e2e8f0\"\/>\n<text x=\"621\" y=\"88\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"13\" fill=\"#0f172a\">Render or refuse<\/text>\n<text x=\"621\" y=\"106\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"11\" fill=\"#475569\">no request fails<\/text>\n<line x1=\"447\" y1=\"120\" x2=\"447\" y2=\"150\" stroke=\"#64748b\" stroke-width=\"2\"\/>\n<line x1=\"200\" y1=\"150\" x2=\"560\" y2=\"150\" stroke=\"#64748b\" stroke-width=\"2\"\/>\n<line x1=\"200\" y1=\"150\" x2=\"200\" y2=\"172\" stroke=\"#64748b\" stroke-width=\"2\"\/>\n<line x1=\"560\" y1=\"150\" x2=\"560\" y2=\"172\" stroke=\"#64748b\" stroke-width=\"2\"\/>\n<rect x=\"24\" y=\"172\" width=\"352\" height=\"74\" rx=\"8\" fill=\"#dcfce7\"\/>\n<text x=\"200\" y=\"198\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"13\" font-weight=\"700\" fill=\"#0f172a\">frame-ancestors present<\/text>\n<text x=\"200\" y=\"218\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"12\" fill=\"#334155\">It decides, checked against every parent.<\/text>\n<text x=\"200\" y=\"235\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"12\" fill=\"#334155\">X-Frame-Options is ignored.<\/text>\n<rect x=\"384\" y=\"172\" width=\"312\" height=\"74\" rx=\"8\" fill=\"#fef3c7\"\/>\n<text x=\"540\" y=\"198\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"13\" font-weight=\"700\" fill=\"#0f172a\">No frame-ancestors<\/text>\n<text x=\"540\" y=\"218\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"12\" fill=\"#334155\">X-Frame-Options decides:<\/text>\n<text x=\"540\" y=\"235\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"12\" fill=\"#334155\">DENY, SAMEORIGIN, or ignored.<\/text>\n<rect x=\"24\" y=\"268\" width=\"672\" height=\"40\" rx=\"8\" fill=\"#fee2e2\"\/>\n<text x=\"360\" y=\"293\" text-anchor=\"middle\" font-family=\"Arial, sans-serif\" font-size=\"13\" fill=\"#0f172a\">The refusal message appears in the console of the EMBEDDING page, not the framed site.<\/text>\n<\/svg>\n<\/div>\n\n\n\n<figure class=\"wp-block-table ah-ladder\"><table><thead><tr><th>Headers on the framed page<\/th><th>Result<\/th><th>Console line in the embedding page<\/th><\/tr><\/thead><tbody><tr><td>No frame headers<\/td><td>Loads<\/td><td>none<\/td><\/tr><tr><td>X-Frame-Options: DENY<\/td><td>Blocked<\/td><td>Refused to display &#8230; &#8216;deny&#8217;<\/td><\/tr><tr><td>X-Frame-Options: SAMEORIGIN<\/td><td>Blocked<\/td><td>Refused to display &#8230; &#8216;sameorigin&#8217;<\/td><\/tr><tr><td>X-Frame-Options: ALLOW-FROM the parent<\/td><td>Loads<\/td><td>Invalid header &#8230; not a recognized directive. The header will be ignored<\/td><\/tr><tr><td>X-Frame-Options: ALLOWALL<\/td><td>Loads<\/td><td>none<\/td><\/tr><tr><td>frame-ancestors &#8216;self&#8217;<\/td><td>Blocked<\/td><td>Framing &#8230; violates the following Content Security Policy directive<\/td><\/tr><tr><td>frame-ancestors naming the parent<\/td><td>Loads<\/td><td>none<\/td><\/tr><tr><td>DENY plus frame-ancestors naming the parent<\/td><td>Loads<\/td><td>none<\/td><\/tr><tr><td>WordPress pair: SAMEORIGIN plus frame-ancestors self<\/td><td>Blocked<\/td><td>Framing &#8230; violates &#8230; frame-ancestors (CSP wording only)<\/td><\/tr><tr><td>Two X-Frame-Options headers: SAMEORIGIN and ALLOWALL<\/td><td>Blocked<\/td><td>&#8230; multiple &#8216;X-Frame-Options&#8217; headers with conflicting values &#8230; Falling back to &#8216;deny&#8217;<\/td><\/tr><tr><td>WordPress pair plus a second policy naming the parent<\/td><td>Blocked<\/td><td>Framing &#8230; violates &#8230; frame-ancestors (policies intersect)<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Chrome 158 frame header outcome table, 11 setups, cross-origin parent, lab 2026-11-24<\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>frame-ancestors beats X-Frame-Options.<\/strong> A page sending DENY and naming the parent in frame-ancestors loaded.<\/li>\n\n\n\n<li><strong>ALLOW-FROM does nothing.<\/strong> The page loaded and the console said the directive is not recognized, which matches MDN.<\/li>\n\n\n\n<li><strong>Duplicate headers fall back to deny.<\/strong> The conflict message is in the Chromium source at lines 202 to 204.<\/li>\n\n\n\n<li><strong>Two policies intersect.<\/strong> A self-only policy plus one naming the parent still blocked.<\/li>\n\n\n\n<li><strong>The WordPress pair prints the policy wording.<\/strong> On a stock login page Chrome 158 printed the Framing line, not the Refused to display line, so search for both.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"why-www-subdomain-http-count-as-another-origin\" class=\"wp-block-heading\">Why www, a Subdomain or http Still Counts as Another Site<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SAMEORIGIN and a self-only policy compare origins: scheme, host and port. In our lab the parent sat on sub.parent.localhost and the framed page on parent.localhost. All three header setups we tried were blocked, including a policy that named the parent host only. By the same rule www.example.com framing example.com is refused, and so is http framing https. The Chromium source checks frame-ancestors against every parent (line 368), so in nested frames one disallowed ancestor stops the load.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It also explains the Customizer. By the header&#8217;s own rule the preview works only when wp-admin and the front end share one origin, because core sets the same SAMEORIGIN pair for it.<\/p>\n\n\n\n<h2 id=\"allow-one-named-site-to-frame-wordpress\" class=\"wp-block-heading\">How to Allow One Named Site to Frame WordPress Pages<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Allow the one site you trust and nothing else. X-Frame-Options can no longer name a site, so the allowlist lives in frame-ancestors, and the old header has to go so the two never disagree.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Removing only X-Frame-Options does not work. In our lab, with that header gone and core&#8217;s policy still in place, Chrome kept blocking the login page. Removing core&#8217;s hooks needs care too. The login hook is registered before init, but the admin hook is registered later, so a remove_action at init cleared wp-login.php and left wp-admin with both headers. The reliable pattern replaces the headers after core has sent them, at priority 11:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\/* wp-content\/mu-plugins\/allow-one-frame-parent.php *\/\n$allow_one_parent = function () {\n    header_remove( 'X-Frame-Options' );\n    header( \"Content-Security-Policy: frame-ancestors 'self' https:\/\/partner.example\" );\n};\nadd_action( 'login_init', $allow_one_parent, 11 );\nadd_action( 'admin_init', $allow_one_parent, 11 );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In the lab, Chrome loaded the login page inside a parent on a different origin named in the policy, and wp-admin carried the same single header. Replace https:\/\/partner.example with the exact scheme and host of the embedding site, never a wildcard. A login form that any page may frame is a clickjacking target. If only wp-login.php must be framed, register the closure on login_init alone and keep the dashboard locked. The header() call only works before output starts, so if it fails see <a href=\"https:\/\/www.ahosting.net\/blog\/cannot-modify-header-information-headers-already-sent-by\/\">Headers Already Sent in WordPress<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the decoder to turn the console line you see into the next step.<\/p>\n\n\n\n<style>\n.ahfrm-tool{border:1px solid #cbd5e1;border-radius:12px;padding:20px;margin:24px 0;background:#f8fafc}\n.ahfrm-tool h3{margin:0 0 12px;font-size:1.15rem;color:#0f172a}\n.ahfrm-tool label{display:block;font-size:.9rem;margin:10px 0 4px;color:#334155}\n.ahfrm-tool select{width:100%;max-width:620px;padding:8px;border:1px solid #94a3b8;border-radius:6px;font-size:1rem}\n.ahfrm-tool .ahfrm-out{font-size:.95rem;color:#0f172a;margin:14px 0;padding:12px;background:#eff6ff;border-radius:8px}\n.ahfrm-tool .ahfrm-btn{display:inline-block;background:#2563eb;color:#ffffff;padding:10px 18px;border-radius:8px;text-decoration:none}\na.ahfrm-btn.wp-element-button{color:#ffffff !important;background:#2563eb !important;text-decoration:none !important}\n<\/style>\n<div class=\"ahfrm-tool\" data-ahfrm=\"frame-decoder\">\n<h3>AHosting Frame Error Decoder<\/h3>\n<label for=\"ahfrm-line\">Which line does the embedding page console show?<\/label>\n<select id=\"ahfrm-line\" class=\"ahfrm-line\">\n<option value=\"same\">Refused to display &#8230; because it set &#8216;X-Frame-Options&#8217; to &#8216;sameorigin&#8217;<\/option>\n<option value=\"deny\">Refused to display &#8230; because it set &#8216;X-Frame-Options&#8217; to &#8216;deny&#8217;<\/option>\n<option value=\"csp\">Framing &#8230; violates the following Content Security Policy directive: frame-ancestors<\/option>\n<option value=\"multi\">&#8230; set multiple &#8216;X-Frame-Options&#8217; headers with conflicting values<\/option>\n<option value=\"allow\">Invalid &#8216;X-Frame-Options&#8217; header &#8230; is not a recognized directive<\/option>\n<\/select>\n<label for=\"ahfrm-where\">Where does the framed page live compared with the embedding page?<\/label>\n<select id=\"ahfrm-where\" class=\"ahfrm-where\">\n<option value=\"own\">Another origin that I control (www, a subdomain, http or https)<\/option>\n<option value=\"wp\">A WordPress login or admin URL<\/option>\n<option value=\"third\">A site I do not control<\/option>\n<\/select>\n<p class=\"ahfrm-out\" aria-live=\"polite\"><\/p>\n<a class=\"ahfrm-btn wp-element-button\" href=\"https:\/\/www.ahosting.net\/wordpress-hosting.html\">See WordPress hosting plans<\/a>\n<\/div>\n<script>\n(function(){\n  document.addEventListener('DOMContentLoaded', function(){\n    var root = document.querySelector('[data-ahfrm]');\n    if (!root) { return; }\n    var id = root.getAttribute('data-ahfrm');\n    if (!id) { return; }\n    var line = root.querySelector('.ahfrm-line');\n    var where = root.querySelector('.ahfrm-where');\n    var out = root.querySelector('.ahfrm-out');\n    if (!line) { return; }\n    if (!where) { return; }\n    if (!out) { return; }\n    var LINES = {\n      same: \"The framed page sent SAMEORIGIN and no frame-ancestors policy. Only a parent with the same scheme, host and port may frame it.\",\n      deny: \"The framed page sent DENY. No parent may frame it, not even its own site.\",\n      csp: \"A frame-ancestors policy blocked it, and on that response the X-Frame-Options header is ignored. Read the list in the policy and compare it with the parent origin.\",\n      multi: \"Two X-Frame-Options headers disagreed, so the browser fell back to deny. Find the second sender, usually the server or a plugin, and keep one.\",\n      allow: \"The ALLOW-FROM value is ignored by the browser, so this header did not cause a block. Look for a frame-ancestors policy on the same response.\"\n    };\n    var WHERE = {\n      own: \" Another host of your own is still another origin: www, a subdomain and http against https all count. Name that origin in frame-ancestors, or serve both from one origin.\",\n      wp: \" WordPress core sends the pair on wp-login.php and wp-admin. Replace both headers at priority 11 with a frame-ancestors policy naming the embedding site.\",\n      third: \" You cannot change another site's headers. Ask its owner to allow your origin in frame-ancestors, or link to the page instead of framing it.\"\n    };\n    function show(){\n      var a = LINES[line.value];\n      if (!a) { a = ''; }\n      var b = WHERE[where.value];\n      if (!b) { b = ''; }\n      out.textContent = a + b;\n    }\n    line.addEventListener('change', show);\n    where.addEventListener('change', show);\n    show();\n  });\n})();\n<\/script>\n\n\n\n<h2 id=\"when-the-header-does-not-come-from-wordpress\" class=\"wp-block-heading\">When the Header Does Not Come From WordPress<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If a front-end page refuses to be framed, core is not the sender. Check the server configuration or .htaccess, a security plugin&#8217;s header setting and any CDN rule, and change the header where it is set. A PHP snippet cannot remove a header a CDN adds after PHP has finished. MDN shows the Apache and nginx lines for X-Frame-Options. We did not test Apache or LiteSpeed here, so confirm with curl after any change. For the wider picture of what the server layer does, read <a href=\"https:\/\/www.ahosting.net\/blog\/wordpress-hosting-security-2026-server-level-protection\/\">WordPress Hosting Security 2026<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Two things never work. A meta http-equiv tag for X-Frame-Options has no effect, and frame-ancestors is not supported in a meta element either, both per MDN. A static page or another app on the same account follows the same rule, so a site on a <a href=\"https:\/\/www.ahosting.net\/web-hosting.html\">web hosting plan<\/a> needs the header set in its own server configuration.<\/p>\n\n\n\n<h2 id=\"refused-to-display-in-a-frame-fix-checklist\" class=\"wp-block-heading\">Refused to Display in a Frame: Fix Checklist<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Copy the exact console line from the embedding page.<\/li>\n\n\n\n<li>Run curl -sI on the framed URL and read X-Frame-Options and Content-Security-Policy from a 200 response.<\/li>\n\n\n\n<li>If a frame-ancestors policy is present, ignore X-Frame-Options and read the list.<\/li>\n\n\n\n<li>Compare origins exactly: scheme, host and port.<\/li>\n\n\n\n<li>Change the header where it is set. For the WordPress login and admin, replace both headers at priority 11.<\/li>\n\n\n\n<li>Reload the embedding page and run the curl again to confirm.<\/li>\n<\/ol>\n\n\n\n<h2 id=\"faq-refused-to-display-in-a-frame-wordpress\" class=\"wp-block-heading\">Frequently Asked Questions: Refused to Display in a Frame<\/h2>\n\n\n\n<h3 id=\"faq-what-does-refused-to-display-in-a-frame-mean\" class=\"wp-block-heading\">What does refused to display in a frame mean, and what are the X-Frame-Options values in 2026?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifically, it means the browser loaded a page for an iframe and then declined to draw it because that page sent a header forbidding the embedding. X-Frame-Options accepts DENY, which blocks every parent, and SAMEORIGIN, which allows only the same origin. ALLOW-FROM is obsolete and modern browsers ignore it. The message prints in the console of the embedding page, and the blocked site logs nothing, as the decision table above shows.<\/p>\n\n\n\n<h3 id=\"faq-x-frame-options-vs-frame-ancestors-which-wins\" class=\"wp-block-heading\">Refused to display in a frame: X-Frame-Options vs frame-ancestors, which one wins in Chrome?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In practice, frame-ancestors wins. In our Chrome 158 lab a page that sent X-Frame-Options DENY together with a frame-ancestors list naming the parent loaded normally, because the browser ignores the older header once a frame-ancestors policy is present. The Chromium source returns early for that case. Send one header, not both.<\/p>\n\n\n\n<h3 id=\"faq-refused-to-display-in-a-frame-wordpress-login-2026\" class=\"wp-block-heading\">Why does refused to display in a frame appear on my WordPress login page in 2026?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Typically because WordPress core sends X-Frame-Options SAMEORIGIN and a frame-ancestors policy limited to the site itself on wp-login.php and on wp-admin. In WordPress 7.1.5 both come from one function that runs on the login and admin hooks. Any page on another origin that frames the login form is refused, which is the clickjacking protection working as designed.<\/p>\n\n\n\n<h3 id=\"faq-still-refused-to-display-in-a-frame-after-removing-x-frame-options\" class=\"wp-block-heading\">Why is refused to display in a frame still showing after I removed X-Frame-Options from WordPress?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Indeed, removing only that header changes nothing in Chrome. WordPress sends a frame-ancestors policy from the same function, and in our lab the login page stayed blocked with only that policy left. Replace both headers, or remove the core hooks at the right moment, as the section on allowing one named site shows.<\/p>\n\n\n\n<h3 id=\"faq-samesite-www-vs-bare-domain-same-origin-2026\" class=\"wp-block-heading\">Does SAMEORIGIN treat www vs the bare domain as the same site in 2026?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifically, no. Origin means scheme, host and port, so www.example.com, example.com and a subdomain are three different origins. In our lab a page on a subdomain was refused when it framed its parent, under both SAMEORIGIN and a self-only frame-ancestors policy. The same applies to http against https.<\/p>\n\n\n\n<h3 id=\"faq-which-wordpress-hooks-send-refused-to-display-in-a-frame-headers\" class=\"wp-block-heading\">Which WordPress hooks send the headers behind refused to display in a frame, and at what priority?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifically, core runs send_frame_options_header on admin_init and on login_init, both at priority 10 in WordPress 7.1.5. The Customizer adds its own filter that sets the same pair for the preview. Core sends nothing on front-end pages, so a public page that refuses to be framed is getting its header from the server, a plugin or a CDN.<\/p>\n\n\n\n<h3 id=\"faq-does-ahosting-send-x-frame-options-2026\" class=\"wp-block-heading\">Does AHosting send X-Frame-Options on its own pages, and what did we measure in 2026?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Overall, yes. A curl check on 2026-11-24 showed the AHosting home page and the blog home both answering with X-Frame-Options SAMEORIGIN and a content security policy ending in a frame-ancestors rule for the site itself. WordPress core sends nothing on those pages, so the headers are set outside core. Other sites cannot frame those pages.<\/p>\n\n\n\n<h3 id=\"faq-allow-one-partner-refused-to-display-in-a-frame-ahosting-wordpress\" class=\"wp-block-heading\">How do I allow one partner site past refused to display in a frame on an AHosting WordPress plan?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In practice, replace both headers on the login and admin hooks with one frame-ancestors policy that names the partner origin, using a small must-use plugin. That changes only what WordPress sends. A header added by the server or the CDN is a separate layer and has to be changed where it is set. Test with curl after the change.<\/p>\n\n\n\n<h3 id=\"faq-check-headers-before-embedding-ahosting-site-2026\" class=\"wp-block-heading\">How can I check which headers my AHosting site returns before embedding it in 2026?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Fortunately, one curl command shows them. Run curl with the head option against the exact URL you plan to frame, then look at X-Frame-Options and Content-Security-Policy on a 200 response, not on an error page. The browser console of the embedding page then confirms which rule fired.<\/p>\n\n\n\n<h3 id=\"faq-is-x-frame-options-deprecated-allow-from-supported\" class=\"wp-block-heading\">Is the X-Frame-Options header deprecated, and do browsers still support ALLOW-FROM?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In fact, DENY and SAMEORIGIN still work, but frame-ancestors is the replacement and ALLOW-FROM is obsolete. In our Chrome 158 lab a page sending ALLOW-FROM with the parent origin loaded, and the console said the value is not a recognized directive and the header would be ignored. To allow one named site, use frame-ancestors.<\/p>\n\n\n\n<script>\n(function(){\n  document.addEventListener('DOMContentLoaded', function(){\n    var allH3s = document.querySelectorAll('h3.wp-block-heading');\n    var inFaq = false;\n    for (var i = 0; i < allH3s.length; i++) {\n      var h3 = allH3s[i];\n      var prev = h3.previousElementSibling;\n      if (prev) {\n        if (prev.tagName === 'H2') {\n          var prevId = prev.getAttribute('id');\n          if (prevId) {\n            if (prevId.indexOf('faq-') === 0) {\n              inFaq = true;\n            } else {\n              inFaq = false;\n            }\n          }\n        }\n      }\n      if (inFaq) {\n        initToggle(h3);\n      }\n    }\n    function initToggle(h3) {\n      var answer = h3.nextElementSibling;\n      if (!answer) { return; }\n      if (answer.tagName !== 'P') { return; }\n      answer.style.display = 'none';\n      h3.style.cursor = 'pointer';\n      h3.setAttribute('tabindex', '0');\n      h3.setAttribute('aria-expanded', 'false');\n      h3.addEventListener('click', function(){\n        toggleOne(h3, answer);\n      });\n      h3.addEventListener('keydown', function(ev){\n        if (ev.key === 'Enter') { toggleOne(h3, answer); }\n        if (ev.key === ' ') { ev.preventDefault(); toggleOne(h3, answer); }\n      });\n    }\n    function toggleOne(h3, answer) {\n      var open = h3.getAttribute('aria-expanded') === 'true';\n      if (open) {\n        answer.style.display = 'none';\n        h3.setAttribute('aria-expanded', 'false');\n      } else {\n        answer.style.display = 'block';\n        h3.setAttribute('aria-expanded', 'true');\n      }\n    }\n  });\n})();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>TL;DR Refused to display in a frame means a browser would not draw a page inside an iframe because that page&#8217;s response said no. The message prints in the console of the embedding page, and the blocked site logs nothing. WordPress core sends X-Frame-Options SAMEORIGIN plus a frame-ancestors policy on wp-login.php and wp-admin only. In [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1668,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[8],"tags":[444,439,440,441,438,443,117,442],"class_list":["post-1667","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-clickjacking","tag-content-security-policy","tag-frame-ancestors","tag-iframe-embedding","tag-refused-to-display-in-a-frame","tag-wordpress-login","tag-wordpress-troubleshooting","tag-x-frame-options"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.6.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Refused to display in a frame means a header said no. In our Chrome 158 lab, frame-ancestors beat X-Frame-Options. Find the sender and allow one site.\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"Matt Chrust\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.6.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"AHosting Blog | WordPress Hosting Tips &amp; Guides\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Refused to Display in a Frame in WordPress | AHosting\" \/>\n\t\t<meta property=\"og:description\" content=\"Refused to display in a frame means a header said no. In our Chrome 158 lab, frame-ancestors beat X-Frame-Options. Find the sender and allow one site.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.ahosting.net\/blog\/wp-content\/uploads\/2026\/11\/refused-to-display-in-a-frame-wordpress-ahosting.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.ahosting.net\/blog\/wp-content\/uploads\/2026\/11\/refused-to-display-in-a-frame-wordpress-ahosting.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-11-25T14:26:07+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-11-25T21:30:13+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@ahostingdotnet\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Refused to Display in a Frame in WordPress | AHosting\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Refused to display in a frame means a header said no. In our Chrome 158 lab, frame-ancestors beat X-Frame-Options. Find the sender and allow one site.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@ahostingdotnet\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.ahosting.net\/blog\/wp-content\/uploads\/2026\/11\/refused-to-display-in-a-frame-wordpress-ahosting.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#article\",\"name\":\"Refused to Display in a Frame in WordPress | AHosting\",\"headline\":\"Refused to Display in a Frame in WordPress: Who Sent the Header and How to Allow One Site (2026)\",\"author\":{\"@type\":\"Person\",\"name\":\"Matt Chrust\",\"url\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/author\\\/matt-chrust\\\/\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/refused-to-display-in-a-frame-wordpress-ahosting.jpg\",\"width\":1200,\"height\":675,\"caption\":\"Why a browser refuses to frame a page and which header decides. By Matt Chrust, Director of Business Development, AHosting.\"},\"datePublished\":\"2026-11-25T14:26:07+00:00\",\"dateModified\":\"2026-11-25T21:30:13+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#webpage\"},\"articleSection\":\"WordPress, clickjacking, Content-Security-Policy, frame-ancestors, iframe embedding, refused to display in a frame, WordPress login, WordPress troubleshooting, X-Frame-Options\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/category\\\/wordpress\\\/#listItem\",\"name\":\"WordPress\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/category\\\/wordpress\\\/#listItem\",\"position\":2,\"name\":\"WordPress\",\"item\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/category\\\/wordpress\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#listItem\",\"name\":\"Refused to Display in a Frame in WordPress: Who Sent the Header and How to Allow One Site (2026)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#listItem\",\"position\":3,\"name\":\"Refused to Display in a Frame in WordPress: Who Sent the Header and How to Allow One Site (2026)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/category\\\/wordpress\\\/#listItem\",\"name\":\"WordPress\"},\"item\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/\"}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/#organization\",\"name\":\"AHosting\",\"description\":\"WordPress Hosting Tips & Guides\",\"url\":\"https:\\\/\\\/www.ahosting.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ahosting.net\\\/assets\\\/img\\\/ahosting-logo.svg\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#organizationLogo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/ahostingdotnet\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/author\\\/matt-chrust\\\/#author\",\"url\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/author\\\/matt-chrust\\\/\",\"name\":\"Matt Chrust\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/795895edac1c44589f6c7f5e6bb79df405fbbaac15817bdd387ec57da61731ec?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Matt Chrust\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/\",\"name\":\"Refused to Display in a Frame in WordPress | AHosting\",\"description\":\"Refused to display in a frame means a header said no. In our Chrome 158 lab, frame-ancestors beat X-Frame-Options. Find the sender and allow one site.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/author\\\/matt-chrust\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/author\\\/matt-chrust\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/refused-to-display-in-a-frame-wordpress-ahosting.jpg\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#mainImage\",\"width\":1200,\"height\":675,\"caption\":\"Why a browser refuses to frame a page and which header decides. By Matt Chrust, Director of Business Development, AHosting.\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/blog\\\/refused-to-display-in-a-frame-wordpress\\\/#mainImage\"},\"datePublished\":\"2026-11-25T14:26:07+00:00\",\"dateModified\":\"2026-11-25T21:30:13+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/#website\",\"url\":\"https:\\\/\\\/www.ahosting.net\\\/\",\"name\":\"AHosting\",\"description\":\"WordPress Hosting Tips & Guides\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ahosting.net\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Refused to Display in a Frame in WordPress | AHosting","description":"Refused to display in a frame means a header said no. In our Chrome 158 lab, frame-ancestors beat X-Frame-Options. Find the sender and allow one site.","canonical_url":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#article","name":"Refused to Display in a Frame in WordPress | AHosting","headline":"Refused to Display in a Frame in WordPress: Who Sent the Header and How to Allow One Site (2026)","author":{"@type":"Person","name":"Matt Chrust","url":"https:\/\/www.ahosting.net\/blog\/author\/matt-chrust\/"},"publisher":{"@id":"https:\/\/www.ahosting.net\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.ahosting.net\/blog\/wp-content\/uploads\/2026\/11\/refused-to-display-in-a-frame-wordpress-ahosting.jpg","width":1200,"height":675,"caption":"Why a browser refuses to frame a page and which header decides. By Matt Chrust, Director of Business Development, AHosting."},"datePublished":"2026-11-25T14:26:07+00:00","dateModified":"2026-11-25T21:30:13+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#webpage"},"articleSection":"WordPress, clickjacking, Content-Security-Policy, frame-ancestors, iframe embedding, refused to display in a frame, WordPress login, WordPress troubleshooting, X-Frame-Options"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ahosting.net\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.ahosting.net\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ahosting.net\/blog\/category\/wordpress\/#listItem","name":"WordPress"}},{"@type":"ListItem","@id":"https:\/\/www.ahosting.net\/blog\/category\/wordpress\/#listItem","position":2,"name":"WordPress","item":"https:\/\/www.ahosting.net\/blog\/category\/wordpress\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#listItem","name":"Refused to Display in a Frame in WordPress: Who Sent the Header and How to Allow One Site (2026)"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ahosting.net\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#listItem","position":3,"name":"Refused to Display in a Frame in WordPress: Who Sent the Header and How to Allow One Site (2026)","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ahosting.net\/blog\/category\/wordpress\/#listItem","name":"WordPress"},"item":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/"}]},{"@type":"Organization","@id":"https:\/\/www.ahosting.net\/#organization","name":"AHosting","description":"WordPress Hosting Tips & Guides","url":"https:\/\/www.ahosting.net\/","logo":{"@type":"ImageObject","url":"https:\/\/www.ahosting.net\/assets\/img\/ahosting-logo.svg","@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#organizationLogo"},"image":{"@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#organizationLogo"},"sameAs":["https:\/\/x.com\/ahostingdotnet"]},{"@type":"Person","@id":"https:\/\/www.ahosting.net\/blog\/author\/matt-chrust\/#author","url":"https:\/\/www.ahosting.net\/blog\/author\/matt-chrust\/","name":"Matt Chrust","image":{"@type":"ImageObject","@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/795895edac1c44589f6c7f5e6bb79df405fbbaac15817bdd387ec57da61731ec?s=96&d=mm&r=g","width":96,"height":96,"caption":"Matt Chrust"}},{"@type":"WebPage","@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#webpage","url":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/","name":"Refused to Display in a Frame in WordPress | AHosting","description":"Refused to display in a frame means a header said no. In our Chrome 158 lab, frame-ancestors beat X-Frame-Options. Find the sender and allow one site.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.ahosting.net\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ahosting.net\/blog\/author\/matt-chrust\/#author"},"creator":{"@id":"https:\/\/www.ahosting.net\/blog\/author\/matt-chrust\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.ahosting.net\/blog\/wp-content\/uploads\/2026\/11\/refused-to-display-in-a-frame-wordpress-ahosting.jpg","@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#mainImage","width":1200,"height":675,"caption":"Why a browser refuses to frame a page and which header decides. By Matt Chrust, Director of Business Development, AHosting."},"primaryImageOfPage":{"@id":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/#mainImage"},"datePublished":"2026-11-25T14:26:07+00:00","dateModified":"2026-11-25T21:30:13+00:00"},{"@type":"WebSite","@id":"https:\/\/www.ahosting.net\/#website","url":"https:\/\/www.ahosting.net\/","name":"AHosting","description":"WordPress Hosting Tips & Guides","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.ahosting.net\/#organization"}}]},"og:locale":"en_US","og:site_name":"AHosting Blog | WordPress Hosting Tips &amp; Guides","og:type":"article","og:title":"Refused to Display in a Frame in WordPress | AHosting","og:description":"Refused to display in a frame means a header said no. In our Chrome 158 lab, frame-ancestors beat X-Frame-Options. Find the sender and allow one site.","og:url":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/","og:image":"https:\/\/www.ahosting.net\/blog\/wp-content\/uploads\/2026\/11\/refused-to-display-in-a-frame-wordpress-ahosting.jpg","og:image:secure_url":"https:\/\/www.ahosting.net\/blog\/wp-content\/uploads\/2026\/11\/refused-to-display-in-a-frame-wordpress-ahosting.jpg","og:image:width":1200,"og:image:height":675,"article:published_time":"2026-11-25T14:26:07+00:00","article:modified_time":"2026-11-25T21:30:13+00:00","twitter:card":"summary_large_image","twitter:site":"@ahostingdotnet","twitter:title":"Refused to Display in a Frame in WordPress | AHosting","twitter:description":"Refused to display in a frame means a header said no. In our Chrome 158 lab, frame-ancestors beat X-Frame-Options. Find the sender and allow one site.","twitter:creator":"@ahostingdotnet","twitter:image":"https:\/\/www.ahosting.net\/blog\/wp-content\/uploads\/2026\/11\/refused-to-display-in-a-frame-wordpress-ahosting.jpg"},"aioseo_meta_data":{"post_id":"1667","title":"Refused to Display in a Frame in WordPress | AHosting","description":"Refused to display in a frame means a header said no. In our Chrome 158 lab, frame-ancestors beat X-Frame-Options. Find the sender and allow one site.","keywords":null,"keyphrases":{"focus":{"keyphrase":"refused to display in a frame","score":0,"analysis":[]},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2026-11-25 14:21:36","updated":"2026-11-25 21:32:23","seo_analyzer_scan_date":null,"focus_keyword":"refused to display in a frame","additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ahosting.net\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ahosting.net\/blog\/category\/wordpress\/\" title=\"WordPress\">WordPress<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tRefused to Display in a Frame in WordPress: Who Sent the Header and How to Allow One Site (2026)\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ahosting.net\/blog\/"},{"label":"WordPress","link":"https:\/\/www.ahosting.net\/blog\/category\/wordpress\/"},{"label":"Refused to Display in a Frame in WordPress: Who Sent the Header and How to Allow One Site (2026)","link":"https:\/\/www.ahosting.net\/blog\/refused-to-display-in-a-frame-wordpress\/"}],"_links":{"self":[{"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/posts\/1667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/comments?post=1667"}],"version-history":[{"count":2,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/posts\/1667\/revisions"}],"predecessor-version":[{"id":1677,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/posts\/1667\/revisions\/1677"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/media\/1668"}],"wp:attachment":[{"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/media?parent=1667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/categories?post=1667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ahosting.net\/blog\/wp-json\/wp\/v2\/tags?post=1667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}