[Teams custom tab] Iframe blocking scripts/requests redirects - ERR_TO_MANY_REDIRECTS
Hello,
We have been using a custom Microsoft Teams application for several years now. This app renders a web application page inside an iframe (custom tab), and before rendering the actual content, it performs silent authentication.
For the silent authentication mechanism, we are using the following libraries:
- jQuery (3.1.1)
- MicrosoftTeams.js (1.6.0)
- adal.js (1.0.18)
The flow is as follows: The iframe in the Teams custom tab loads a web application page, which is responsible for performing silent authentication. Once the token is obtained, the page redirects the user (with the token) to the final destination page. This setup has been working fine for years, but recently it stopped functioning — without any changes on our side.
We’re currently facing the following issues:
- Scripts and CSS files are no longer being loaded in the iframe view.
- Redirects initiated from within the iframe no longer work.
- This happens regardless of whether the script is hosted locally within the application or is publicly accessible.
It appears that a new policy or restriction has been introduced that blocks script execution and/or any kind of redirection within iframes. This behavior was not present previously, and the application has been working reliably for several years.
Can someone help us investigate this issue or confirm if any recent policy or platform-level changes could be causing this? Below are the attachments.
- The
adal.js
script is included locally from within the application.
- The
adal.js
script is included from a public URL. - The message displayed by the custom tab when attempting to launch it.
- Application console
Thank you in advance for any help or guidance you can provide!