-->

Failed to execute 'postMessage' on 'DO

2019-04-17 12:41发布

问题:

I am developing an add-in for Outlook. I am using the Dialog API.

I get an error when using my adding in Outlook for the Web:

Failed to execute postMessage on DOMWindow: The target origin provided (https://outlook.office.com) does not match the recipient window's origin (https://myIp:port)

It appears when I call Office.context.ui.messageParent.

Anyone faced the same problem and know the fix?