Using iframe panels with javascript modals

I have another web app that I am embedding inside of an iframe panel. It works beautifully until that app tries to do a javascript confirmation modal, which is blocked because the iframe is sandboxed and doesn’t have the allow-modals keyword set. Is there a way for me to enable this?