N Docs
← Back to site

A cloaked link shows “refused to connect”

2 min readUpdated November 23, 2026

“Refused to connect” is the browser’s message when a website doesn’t allow itself to be shown inside another site’s page. It sends the header X-Frame-Options or a frame-ancestors rule. Cloaking shows the destination inside your short link’s page, so these websites can’t be cloaked.

Nahnu Links checks each cloaked destination before showing it. If the website forbids frames, visitors are redirected to it as normal instead, and never see the error. The editor also warns you: This link can’t be cloaked.

If you still see the error#

CauseWhat to do
The website changed its setting in the last few minutesWait. It’s noticed within about 10 minutes.
The edge script is out of dateUpdate it. See The edge script is out of date.
The page you land on is fine, but a page you click to inside it isn’tSome sites only forbid frames on certain pages, like login or checkout. Link to that page without cloaking.
The website couldn’t be checked (it was slow or down)The link is cloaked as you chose, and checked again a minute later.

Allow cloaking on your own site#

If the destination is your own site, allow your short domain to show it:

Content-Security-Policy: frame-ancestors 'self' https://go.yourbrand.com

Remove any X-Frame-Options: DENY or SAMEORIGIN header too. See Link cloaking.

Sites you don’t own#

Only the website’s owner can allow framing. For those links, turn cloaking off; the link works as a normal redirect.