Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


Resize Iframe CORS

27 Apr 2020 » web

https://stackoverflow.com/questions/22086722/resize-cross-domain-iframe-height https://github.com/davidjbradshaw/iframe-resizer

Parent

<iframe id="myIframe" style="border:none;" src="data:text/html;charset=utf-8,{}"></iframe>
<script>
iFrameResize(, '#myIframe')
</script>

Inside Iframe

<script type="text/javascript" src="https://crashlaker.github.io/static/js/iframe-resize-content.js"></script>