Remove x-frame-options to sameorigin from iframe

Trying to remove/deny x-frame-options to sameorigin from an external URL, such as through an iframe? You can bypass it using an external library.

Deny an external x-frame-options header

In order to deny an external x-frame-options header through an iframe, you should use this x-frame-bypass library paired with this custom elements builtin library, as per the example below.

<iframe is="x-frame-bypass" src=""></iframe>

<script src=""></script>
<script type="module" src=""></script>

The above snippet is extremely useful if you’re looking to iframe a Google search listing result specifically.