AppDomains element

Lists any domains, in addition to the domain specified in the SourceLocation element, that your Office Add-in will use and that should be trusted by Office. This enables pages in the domains to make calls to Office.js APIs from IFrames within the add-in and has other effects. For each additional domain, specify an <AppDomain> element.

Add-in type: Content, Task pane, Mail

Syntax

<AppDomains>
    <AppDomain>AppDomain1</AppDomain>
    <AppDomain>AppDomain2</AppDomain>
</AppDomains>

Important

There are restrictions on what can be the value of a <AppDomain> element. For more information, see AppDomain.

Contained in

Can contain

Remarks

By default, your add-in can load any page that is in the same domain as the location specified in the SourceLocation element. This element can't be empty.