Skip to main content

Fixed: "You Are About to Connect to a Developer Tunnel" in a Teams Dialog

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

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:

A Teams dialog from the app Town Hall Seats, titled Pick your seat, filled with a Microsoft page: You are about to connect to a developer tunnel at: cdzngt35-3978.inc1.devtunnels.ms, four bullet points, and the buttons Continue and Report unsafe page.

The warning
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:

A short Teams dialog titled Guest Wi-Fi: Teams' warning bar with Open In Desktop at the top, and below it only the first lines of the tunnel warning, You are about to connect to a developer tunnel at: cdzngt35-3980.inc1.devtunnels.ms, cut off before its buttons.

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:

  1. Click the text of the warning inside the dialog, so the keyboard works on that page.
  2. Press Tab once. That moves to Continue.
  3. 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:

Agent output
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:

The Guest Wi-Fi dialog after Continue, with no warning bar: Network: Contoso-Guest, Password: ask at the front desk. It changes every day., and The guest network reaches the internet only.

Common Mistakes​

MistakeWhat happensDo this instead
Scrolling a short dialog to find ContinueNothing moves: the warning page is no taller than the dialog's page areaClick the warning's text, press Tab, then Enter
Expecting one Continue to cover every portEach tunnel address shows the warning onceSelect Continue once for each
Taking the warning for a problem in the agentThe agent never sees the request until ContinueGet past the warning, then check the agent

Troubleshooting​

SymptomLikely causeFix
You are about to connect to a developer tunnel at: in the dialogFirst visit to that tunnel address in this browserSelect Continue
The warning is cut off and Continue isn't visibleThe dialog is too short, and Teams' warning bar takes more roomClick the warning's text, press Tab, then Enter
If you're having issues with this app, try the desktop version above the tunnel warningThe agent's page hasn't loaded yetGet 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​