iFrame - height for reports

I have only switched recently from Google to Matomo and it is great to see how easy it its. I have tried to include Matomo reports in my website using iframe and failed as I need to specify the height of the iFrame.
I have reached the forms here and there have been several requests like this since 2011. I think the problem is that the onLoad solution typically mentioned does not work as it is cross-domain.
Has this been addressed in the meantime (and I did not find it) or would it be possible to include something like https://github.com/davidjbradshaw/iframe-resizer?