If I create an iframe
like this:
var dialog = $(\'
The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in a ,
or
. Sites can use this to avoid clickjacking attacks, by ensuring that their content is not embedded into other sites.
For More Information: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
I have an alternate solution for this problem, which I am going to demonstrate by using PHP:
iframe.php:
target_url.php: