Office 365 Developer: Office Web Add-in dialog box cannot be displayed and throws error

I came across this issue while working with my developer customer(s) who was developing an Office Web Add-in (Outlook/OWA specific)

- They designed an Outlook Web add-in, the user is asked to allow a dialog box to be displayed.
- Now the user chooses Allow, and it throws the error message (in both IE and Edge)
- The error message states, "The security settings in your browser prevent us from creating a dialog box. Try a different browser, or configure your browser so that [URL] and the domain shown in your address bar are in the same security zone."

In order to overcome the issue, we tried adding the domain of the add-in to the list of trusted sites in Internet Explorer – it worked. Just make sure its a trusted add-in!!

Hope this helps!!