Detection of websites using X-Frame-Options #2

martey opened this Issue Oct 15, 2012 · 5 comments


None yet
3 participants

martey commented Oct 15, 2012

When I tried this on my personal website, I freaked out for a couple of seconds because nothing was displayed. I eventually realized that this was because I was using X-Frame-Options to prevent clickjacking.

I found a StackOverflow answer showing a method to detect X-Frame-Options client-side. Would you consider integrating it?


johnpolacek commented Oct 15, 2012

You can detect, but it still won't display in the iFrame, so I'm not sure what the point would be?


martey commented Oct 15, 2012

Neither Chrome nor Firefox display an error message in the iframe when X-Frame-Options is causing an iframed site not to load, so it is not clear (without loading an error console or looking at HTTP headers) that Responsivator is not at fault.

I thought it might make the site more user-friendly if it displayed an error message to let the user know that this might be the issue. One could argue that this is the browser's responsibility, though.


johnpolacek commented Oct 10, 2014

I accept pull requests! :)

@johnpolacek did anyone ever do anything about this? I'm going to look for a solution to warn people using the am i responsive tool so if you're interested I'll share the solutions


johnpolacek commented Jan 7, 2015

Sounds good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment