-
Notifications
You must be signed in to change notification settings - Fork 116
Description
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
- Open New Outlook for Windows
- Load the Outlook add-in
- Call Office.context.ui.displayDialogAsync(dialogUrl, options, callback);
- 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?