www.linkedin.com refused to connect
Why LinkedIn will not load in a frame, and what to do. Headers checked 2026-11-30.
LinkedIn pages cannot be loaded in an iframe on other sites. To show a public post, use the post's "Embed this post" code. For profiles and company pages, use a link.
What the site sends
- Framing header
- X-Frame-Options: SAMEORIGIN and Content-Security-Policy: frame-ancestors 'self' (plus LinkedIn's own hosts)
- Checked URL
https://www.linkedin.com/- Checked on
- 2026-11-30
Why it happens
LinkedIn pages send X-Frame-Options: SAMEORIGIN and a frame-ancestors list with only LinkedIn hosts. Browsers block them on every other site.
Single posts have a separate URL under /embed/feed/update/ that sends neither header.
Fix it if you are embedding LinkedIn
Embed a post
On a computer, open the post, select the More icon in its top-right corner, and choose "Embed this post". Pick a format and click "Copy code". Only posts the author shared as Public can be embedded. Multi-photo posts and reposts with commentary cannot.
<iframe src="https://www.linkedin.com/embed/feed/update/urn:li:share:POST_ID"
height="600" width="504" frameborder="0" allowfullscreen
title="Embedded post"></iframe>Link to profiles and company pages
LinkedIn offers no iframe for a profile or a company page. Use a normal link.
If you only see the error
The page you are on tried to show LinkedIn inside a frame. Open the LinkedIn link in a new tab instead.
FAQ
Can I embed my LinkedIn feed or company updates?
Not with a plain iframe. You can embed public posts one at a time.
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)
- 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.canva.com refused to connect (Canva)
- www.facebook.com refused to connect (Facebook)