XFrameOptions.sameorigin()

Set the directive to SAMEORIGIN.

Usage

Source

XFrameOptions.sameorigin()

The page can only be displayed if all ancestor frames have the same origin as the page.