Skip to content
ClickJack Test

← Refused to connect

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

Test it live →

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.

Check your headers

See whether a site sends X-Frame-Options or CSP frame-ancestors, and what browsers will do with them.