Skip to content

displayDialogAsync fails in New Outlook with error 12011 #6446

@tomasz-i

Description

@tomasz-i

displayDialogAsync fails in New Outlook with error 12011 despite same-domain dialog (regression)

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: PC desktop
  • Host [Excel, Word, PowerPoint, etc.]: Modern Outlook / Webview2
  • Office version number: latest
  • Operating System: Windows 11
  • Browser (if using Office on the web): Edge
  • API: Office.context.ui.displayDialogAsync
  • Manifest: Outlook Web Add-in XML

Expected behavior

DisplayDialogAsync should open new dialog and allow communication between add-in panel and dialog using Office.context.ui.messageParent

Current behavior

Office.context.ui.displayDialogAsync fails in New Outlook for Windows with error 12011, even though the dialog URL and the add-in host URL are on the same domain.

Error message is displayed: "Browser restrictions prevented us from creating the dialog box. The domain of dialog box and the domain of the add-in host are not in the same security zone."

This scenario previously worked in New Outlook, and continues to work in Classic Outlook, which suggests a regression specific to the New Outlook (WebView2) host.

Steps to reproduce

  1. Open New Outlook for Windows
  2. Load the Outlook add-in
  3. Call Office.context.ui.displayDialogAsync(dialogUrl, options, callback);
  4. Observe the callback result

Additional details

  • The dialog URL and add-in host URL are on the same domain
  • HTTPS is used
  • No mixed content (HTTP) is involved
  • This behavior appears only in New Outlook

Context

This blocks authentication and user interaction flows that rely on dialogs, making the add-in unusable in New Outlook.

Question for the Team

Is this a known regression or a change in dialog security validation logic in New Outlook (WebView2)?
If security zone checks are still enforced, what is the expected configuration for same-domain dialogs in New Outlook?

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions