Embedding an instagram/youtube page in an iframe "Refused to display document because display forbidden by X-Frame-Options."

StackOverflow https://stackoverflow.com/questions/14802669

I realize that there are ways to embed youtube videos directly, that's not what I would like to do. Is there any way to display the site in an iframe? Or instagram? This is crucial for what I'm trying to do.

有帮助吗?

解决方案

No, otherwise the header would be quite useless. Of course you can use a really old browser that does not recognize the header but there is nothing you can do about it server side. See also: https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top