I want to redirect my add in to a URL in a different domain.
I added the domain to the manifest like this:
<AppDomains>
<AppDomain>https://another.domain.com</AppDomain>
</AppDomains>
And I can verify that worked because I can add a normal link to my add in like this:
<a href="https://another.domain.com/something">Click me</a>
Then I click that link and everything is fine.
But if I try to change the location programmatically like this:
window.location.href = "https://another.domain.com/something";
then the add in stops working, showing only the error screen saying "ADD-IN ERROR Sorry, we can't load the add-in. Please make sure you have network and/or internet connectivity. Click "Retry" once you're back online."
Is that the expected behaviour? How can I redirect my add in to a different domain? This used to work fine with the IE11 webview, but it doesn't work with the Chromium webview.