www.google.com refused to connect
Why Google Search will not load in a frame, and what to do. Headers checked 2026-11-30.
Google does not let other sites show google.com in a frame. A page, a browser extension or an app tried to load it inside one. Open Google in a normal tab. If you want search on your own site, use Programmable Search Engine.
What the site sends
- Framing header
- X-Frame-Options: SAMEORIGIN
- Checked URL
https://www.google.com/- Checked on
- 2026-11-30
Why it happens
The Google home page sends X-Frame-Options: SAMEORIGIN. Only pages on google.com may frame it. Everywhere else the browser blocks the response, and Chrome shows "www.google.com refused to connect" with the code ERR_BLOCKED_BY_RESPONSE.
Fix it if you are embedding Google Search
Add search to your site with Programmable Search Engine
Create a search engine at programmablesearchengine.google.com, then paste its code into your page. Google draws the search box and results for you.
<script async src="https://cse.google.com/cse.js?cx=YOUR_ENGINE_ID"></script>
<div class="gcse-search"></div>Use the embed URL of the Google product you want
Some Google products have their own embed URL that loads in a frame. For a map, open the menu in Google Maps, choose "Share or embed map", then "Embed a map", and copy the HTML.
<iframe src="https://www.google.com/maps/embed?pb=..." width="600" height="450"
style="border:0" loading="lazy" allowfullscreen></iframe>
<iframe src="https://calendar.google.com/calendar/embed?src=CALENDAR_ID"
width="800" height="600" style="border:0"></iframe>Link to Google instead
For a link to search results, open it in a new tab with target="_blank". A link clicked inside your iframe loads in that iframe unless you set a target.
If you only see the error
Something tried to show Google inside a frame: a new-tab or start-page extension, a dashboard with a "Google" tile, or a link inside an embedded widget. Open google.com in a normal tab, or right-click the link and choose "Open link in new tab".
If it happens on a page you did not expect, turn off recently added extensions one at a time.
FAQ
Is there a google.com URL that still loads in an iframe?
In our check, https://www.google.com/webhp?igu=1 sent no framing header. Google does not document it, and it can stop working at any time. Do not build a product on it.
Why do I see ERR_BLOCKED_BY_RESPONSE?
It is the error code Chrome uses when a response header blocks a load. Here the header is X-Frame-Options.
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)
- script.google.com refused to connect (Google Apps Script)
- sites.google.com refused to connect (Google Sites)
- 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)