← Back to release summary

X-Frame-Options: SAMEORIGIN matches all ancestors.

Category
Security
Type
New or changed feature
Status
Enabled by default (Chrome 60)
Intent stage
None

Summary

Currently, XFO performs a same origin check only against the top-level frame in a document's ancestor chain. As lcamtuf notes in [1], "Any site that allows a rogue ad to be displayed in an IFRAME; or that frames third-party content for other reasons (e.g., iGoogle, Image Search results, Facebook gadgets), is effectively not protected)." We should check all ancestors instead.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

View on chromestatus.com