Responsivator
Responsivator copied to clipboard
Detection of websites using X-Frame-Options
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?
You can detect, but it still won't display in the iFrame, so I'm not sure what the point would be?
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.
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
Sounds good, thanks!