Frage

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.

War es hilfreich?

Lösung

Of course you can.

Use ALLOW-FROM uri.

Read more on this at MDN

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top