locked
AppDomains not needed in Office add-in manifest for external links? RRS feed

  • Question

  • I created a simple Office add-in with a manifest that has no <AppDomains> section. I then added the following link to the add-in .html file:

    <a href="https://www.tutorialrepublic.com">Test</a>
    

    When I load the add-in in either Office Online or desktop MS Word and click the link, the addin frame loads the html from www.tutorialrepublic.com.

    I would have expected that this would be blocked according to the description here: https://docs.microsoft.com/en-us/office/dev/add-ins/develop/add-in-manifests?tabs=tabid-1#specify-domains-you-want-to-open-in-the-add-in-window

    Can anyone explain the discrepancy? I found I can also submit to a form and set window.location.href to external domains and they open in the addin iframe, not in a separate window as expected


    • Edited by trs79 Thursday, June 14, 2018 6:30 PM
    • Moved by Terry Xu - MSFT Friday, June 15, 2018 7:29 AM
    Thursday, June 14, 2018 3:47 PM

All replies