I’m trying to do an integration with my webapp using OAuth zoom API. Starting the Oauth flow to ‘install’ the app for the user and getting the auth code works just fine if I just the ‘Install link’ I get on Manage app > Install.
The problem appears when I try to use the same URL in an iframe inside my website, where zoom just redirects to a 400 Bad Request page.
This is required because I’m triggering the Zoom installation when the user is in the middle of a form on my webapp and I don’t want to redirect the user to the full Zoom website and then getting back and losing the form state I gathered. I wanted to do this via a modal window with an iframe inside.
Iframe code is very simple:
<iframe width="600" height="600" src="@URL"></iframe>
I’m on Chrome Version 80.0.3987.163
Is this simply not supported or I’m doing something wrong?
Edit: so I managed to get something working using
<iframe sandbox="allow-forms allow-scripts allow-same-origin" width="600" height="600" src="@URL"></iframe>. But if I click on ‘decline’ it tries to go to marketplace.zoom.us and then it says " marketplace.zoom.us refused to connect."
I don’t want to give ‘allow-top-navigation’ because I don’t want the user to leave my website and go to zoom… any tips there?