![]() The spec leaves it up to browser vendors to decide whether this option applies to the top level, the parent, or the whole chain, although it is argued that the option is not very useful unless all ancestors are also in the same origin (see bug 725490). The page can only be displayed in a frame on the same origin as the page itself. The page cannot be displayed in a frame, regardless of the site attempting to do so. On the other hand, if you specify SAMEORIGIN, you can still use the page in a frame as long as the site including it in a frame is the same as the one serving the page. If you specify DENY, not only will the browser attempt to load the page in a frame fail when loaded from other sites, attempts to do so will fail when loaded from the same site. There are two possible directives for X-Frame-Options: X-Frame-Options: DENY
0 Comments
Leave a Reply. |