GOGETMUSCLE Community Issue with HubSpot iFrame Closure in Public App Settings

Issue with HubSpot iFrame Closure in Public App Settings

Hello,


We have observed an unexpected behavior with embedded iFrames in HubSpot:




  • When a user closes the iFrame via the HubSpot UI in the settings screen of a public app, the iFrame reloads just before being closed.




  • This triggers all front-end scripts and network requests inside the iFrame.




  • In our code, it is impossible to detect whether the iFrame is being opened or just closed, making it difficult to control script execution.




Could you clarify if this behavior is intended or documented, and whether there is a recommended way to reliably detect when the iFrame is truly closed?


Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Rotating public app client secretRotating public app client secret

As it has been discussed on these threads: https://community.hubspot.com/t5/APIs-Integrations/How-to-reset-client-secret/m-p/271360/highlight/true#M24554https://community.hubspot.com/t5/APIs-Integrations/Help-on-Oauth2-Client-Secret-Rotation/m-p/1133322#M81462https://community.hubspot.com/t5/APIs-Integrations/How-to-reset-client-secret/m-p/271208#M24533it seems that is not possible for me to rotate the client secret of a public app by myself, but it’s possible for