Fixed: "You Are About to Connect to a Developer Tunnel" in a Teams Dialog
The first time a Teams dialog loaded my agent's page through a dev tunnel, it showed a Microsoft warning instead: You are about to connect to a developer tunnel at: and the tunnel's address. It's Dev Tunnels' own safety page, and Continue gets past it. In a short dialog, though, Continue was out of reach, and only the keyboard got to it.
What I Was Doing
An agent built with the Microsoft 365 Agents SDK opens a Teams dialog whose content is a web page. The agent serves the page itself, and Teams loads it through a dev tunnel, a public address that forwards to the agent on my computer. The tunnel had just been created, and this was the first time the dialog loaded a page through it.
What I Expected
The agent's page in the dialog.
What I Got
The dialog showed a page from Microsoft instead:

You are about to connect to a developer tunnel at:
cdzngt35-3978.inc1.devtunnels.ms
• Only continue to visit the website if you trust whoever sent you the link
• Do not disclose personal information, such as credit card numbers or passwords.
• This warning will only be shown once per tunnel.
• This tunnel was created 9 minutes ago in inc1.
In that dialog, Continue was in view. In a second, much shorter dialog, loading a page through another port of the same tunnel, it wasn't. The warning was cut off below its first lines, and a few seconds later Teams put its own warning on top, If you're having issues with this app, try the desktop version:

What I Checked
Where the page came from. Not from the agent: its request log had no request for the page while the warning was showing. The request arrived only after Continue, so the warning comes from the tunnel, in front of the agent.
What Microsoft's documentation says. The Dev Tunnels security page describes it: When connecting to a web-forwarding url for the first time, users are presented with an interstitial anti-phishing page. It lists when the page is skipped, including The request Accept header doesn't contain text/html and The user has already visited the page and clicked continue. A dialog's page is an ordinary browser request for HTML, so the first visit gets the warning.
How often it appears. Once for each tunnel address. The first dialog used the tunnel's port 3978 and the second its port 3980, and each address showed the warning once. Every later visit went straight to the page.
Why Continue was out of reach in the short dialog. With Teams' warning bar on top, the page area was 150 pixels tall. The tunnel's warning page was exactly that tall, so there was nothing to scroll, and its Continue button sat 220 pixels down, below the visible area.
Why It Happens
Teams loads a dialog's page in the browser, like any other web page. Dev Tunnels protects people from phishing links by showing its warning the first time a browser opens a tunnel address, and a dialog is no exception.
Teams' own warning bar is a side effect: the agent's page, which would connect to Teams, hadn't loaded yet.
The Fix
Select Continue. If the dialog is too short to show it, use the keyboard:
- Click the text of the warning inside the dialog, so the keyboard works on that page.
- Press Tab once. That moves to Continue.
- Press Enter.
The page loads, and that browser doesn't see the warning for that address again. Each new address, such as another port of the tunnel, shows it once more.
The other ways to skip it on that list don't fit a dialog: a page loaded in a frame can't add the X-Tunnel-Skip-AntiPhishing-Page header, and a browser asks for HTML. Once the app runs from its own domain instead of a dev tunnel, there's no warning at all.
After the Fix
After Tab and Enter, the agent's log showed the request for the page:
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:3980/wifi.html - - -
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished HTTP/1.1 GET http://localhost:3980/wifi.html - 200 734 text/html 14.9381ms
The page connected to Teams, Teams removed its warning bar, and the dialog showed the page:

Common Mistakes
| Mistake | What happens | Do this instead |
|---|---|---|
| Scrolling a short dialog to find Continue | Nothing moves: the warning page is no taller than the dialog's page area | Click the warning's text, press Tab, then Enter |
| Expecting one Continue to cover every port | Each tunnel address shows the warning once | Select Continue once for each |
| Taking the warning for a problem in the agent | The agent never sees the request until Continue | Get past the warning, then check the agent |
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| You are about to connect to a developer tunnel at: in the dialog | First visit to that tunnel address in this browser | Select Continue |
| The warning is cut off and Continue isn't visible | The dialog is too short, and Teams' warning bar takes more room | Click the warning's text, press Tab, then Enter |
| If you're having issues with this app, try the desktop version above the tunnel warning | The agent's page hasn't loaded yet | Get past the tunnel warning; the bar went away once the page loaded |
FAQ
Will people using my app see this?
Only while the page comes from a dev tunnel, and only once per browser and address. A deployed app serves its pages from its own domain, with no tunnel in front.
Does the agent get any request while the warning shows?
No. Dev Tunnels answers with its warning page itself, and the request for your page reaches the agent only after Continue.
Conclusion
You are about to connect to a developer tunnel at: in a Teams dialog is Dev Tunnels' anti-phishing page, shown the first time a browser opens a tunnel address. Select Continue, or, when a short dialog hides it, click the warning's text, press Tab once and press Enter. The page loads, and the warning doesn't come back for that address.
Additional Resources
- Dev tunnels security: Anti-phishing protection, on Microsoft Learn.
- Invoke and dismiss dialogs, on Microsoft Learn.
