0

What is the best method to security check that my JS game is not currently being embedded (iframe loaded) by some 3rd party trash domain? It seems content security policy does not always work.

Tom
  • 6,725
  • 24
  • 95
  • 159
  • Have you tried "jumping out" of the iframe by setting `window.parent.location.href=http://mygame.com` , or just checking if there is a `window.parent`? – Kokodoko Apr 01 '19 at 13:00
  • https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options – epascarello Apr 01 '19 at 13:06

0 Answers0