allow-same-origin, while still achieving seamless height adjustment.
The parent page scrolls normally—no scroll inside the iframe.
The untrusted content is wrapped with a small height-reporting script before being injected.
This script uses postMessage to tell the parent its height whenever content changes.
The sandbox has only allow-scripts — no allow-same-origin — so the
untrusted code cannot access the parent's DOM, cookies, or storage.