Issue with sideloading Outlook Add-In due to 'webApplicationInfo' element Resource domain configuration.
We are developing a React.js based Outlook add-in, hosted at https://cmicpublish.cmicglobal.com/cmicdev/outlookplugin
and have successfully initialized Office.js APIs.
Our goal is to use the Office.context.auth.getAccessToken
API to acquire an access token.
To achieve this, we need to configure the webApplicationInfo
element in the manifest file as per Microsoft's documentation.
https://zcusa.951200.xyz/en-us/javascript/api/manifest/webapplicationinfo?view=common-js-preview
In particular, the <Resource>
section in webApplicationInfo
element should include api://verified_domain/{App_ID}
as shown in snapshot.
But we are getting an issue while sideloading manifest file.
- Sideloading fails if the domain specified in
<Resource>
does not match the domain where the add-in is hosted (cmicpublish.cmicglobal.com
).
- We have already set the Application ID URI as
outlook.cmicglobaldev.com
in the Azure portal. - But when, using
outlook.cmicglobaldev.com
in the<Resource>
section ofwebApplicationInfo
element fails sideloading of the add-in.
Could you confirm whether the domain specified in <Resource>
must match the add-in's hosting domain, or if it can be any domain listed in the Application ID URI?