문제

Sites will often set x-frame-options response header to SAMEORIGIN to stop other sites from including their content within an iframe.

I want to know if x-frame-options or any method at all can be used to stop non-affiliated sites from displaying the content while allowing partnered or affiliated sites to do so.

도움이 되었습니까?

해결책

Of course you can.

Use ALLOW-FROM uri.

Read more on this at MDN

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top