Tuesday, 19 January 2016

The X-Frame-Options response header


This response header used to indicate whether a page should be displayed in
<frame>
<iframe>
<object>

There are three possible values for X-Frame-Options:

DENY
    The page cannot be displayed in a frame, regardless of the site attempting to do so.
SAMEORIGIN
    The page can only be displayed in a frame on the same origin as the page itself.
ALLOW-FROM uri
    The page can only be displayed in a frame on the specified origin.


We can configure serever to set  header X-Frame-Option for all pages.
For PlayFramework we have to use Filters.