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