sites.google.com refused to connect
Why Google Sites will not load in a frame, and what to do. Headers checked 2026-11-30.
A published Google Site cannot be shown in an iframe on another website. Google blocks it with both framing headers. Link to the site, or embed the files on it (Docs, Slides, Forms, YouTube) directly.
What the site sends
- Framing header
- X-Frame-Options: DENY and Content-Security-Policy: frame-ancestors (one Google admin origin only)
- Checked URL
https://sites.google.com/view/SITE_NAME/- Checked on
- 2026-11-30
Why it happens
A published Google Sites page sent X-Frame-Options: DENY and a frame-ancestors list with only one internal Google origin on it. Browsers block the page in every frame on a public site, including a frame on another Google Site.
Fix it if you are embedding Google Sites
Link to the site
Use a normal link or button that opens the Google Site in a new tab.
<a href="https://sites.google.com/view/SITE_NAME/" target="_blank" rel="noopener">Open the site</a>Embed the content, not the site
Much of what sits on a Google Site has its own embed code: a published Doc, Sheet or Slides deck, a Form, a Drive file, a map or a YouTube video. Embed those on your page.
Embedding the other way: a page into Google Sites
If the error shows inside your Google Site after Insert, then Embed, the page you added blocks framing. Google says some websites will not let you add their content. Use that page's official embed code with the "Embed code" option, or link to it.
If you only see the error
The page you are on tried to show a Google Site inside a frame, which Google does not allow. Open the Google Site in its own tab.
FAQ
Can I embed one Google Site inside another?
No. The DENY header blocks every frame, including one on another Google Site. Link between the two sites instead.
Other sites that refuse to connect
- www.youtube.com refused to connect (YouTube)
- docs.google.com refused to connect (Google Docs)
- drive.google.com refused to connect (Google Drive)
- login.microsoftonline.com refused to connect (Microsoft sign-in)
- www.google.com refused to connect (Google Search)
- script.google.com refused to connect (Google Apps Script)
- accounts.google.com refused to connect (Google sign-in)
- mail.google.com refused to connect (Gmail)
- analytics.google.com refused to connect (Google Analytics)
- www.linkedin.com refused to connect (LinkedIn)
- www.canva.com refused to connect (Canva)
- www.facebook.com refused to connect (Facebook)