openstreetmap/copyright barred from loading in a frame

Richard Mann richard.mann.westoxford at
Sat Feb 14 15:19:52 UTC 2015

If you look at the test webpage that I posted and click on the
OpenStreetMap hyperlink, it does nothing in Chrome/Firefox and in IE brings
up the following:

"This content cannot be displayed in a frame
To help protect the security of information you enter into this website,
the publisher of this content does not allow it to be displayed in a frame."

A bit of googling revealed that some websites do this to prevent
transparent buttons being maliciously placed on top of the content
(clickjacking). So I figured it must have been done deliberately. But maybe
not! Mysterious.


On Sat, Feb 14, 2015 at 3:11 PM, Tom Hughes <tom at> wrote:

> On 14/02/15 14:51, Richard Mann wrote:
>  I'm developing a simple Android app to display a set of my own tiles,
>> and was trying to load the osm copyright page into a frame, to make it
>> cleaner for the user (maybe not the best approach, but hey). All the
>> other information links worked fine, but it appears that OSM has a block
>> on loading into frames. That seems a bit restrictive for the copyright
>> page. Is it necessary?
> What do you mean exactly? I mean as far as I know we have no such block
> nor do I even know how we would implement one... Short of configuring
> Apache to inspect the referrer I'm not sure how we would even know that we
> were being loaded into a frame?
> Tom
> --
> Tom Hughes (tom at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rails-dev mailing list