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
<iframe is="x-frame-bypass" src="https://www.google.com/search?q=example"></iframe> <script src="https://unpkg.com/@ungap/custom-elements-builtin"></script> <script type="module" src="https://unpkg.com/x-frame-bypass"></script>
The above snippet is extremely useful if you’re looking to iframe a Google search listing result specifically.