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