I have a NextJS project that will be loaded through an Iframe. The content of the page is dynamic and the height of the page constantly changes. Instead of using scroll, I want the Iframe to adjust its height according to its content's height.
I have tried using https://www.npmjs.com/package/iframe-resizer-react but it seems I have an issue on how to load the iframeResizer.contentWindow.min.js.
Need help, Can't find any other answers/sources.
You need to add that file to every page you load into the iFrame