Potato
Potato

Reputation: 190

How do you stop an iframe from saying "Site refused to connect"?

I'm kind of new to iframes, since I just started. And I've just tried a simple iframe tag, just to see what would happen. Let's just say I want to link it to Stack Overflow. The following is the snippet I took that leads to what happened.

FFJFJFJFJFJFJFJF

Does anyone know how to solve this problem? Thanks in advance :D

Upvotes: 5

Views: 19775

Answers (1)

O. Jones
O. Jones

Reputation: 108839

If you look at the Network tab of your browser's devtools, you'll see more detail about what happens when you try to embed something in an iframe.

Many sites disallow themselves from being embedded by sending the X-Frame-Options header to browsers.

Upvotes: 0

Related Questions