I'm working on a gig which is an Office (Excel) 2016 add-in for data integration with a web application. We're using Office JS API, and the XML manifest file points to an AngularJS web app. Everything's OK and works properly so far.
Recently, we decided to add OAuth2 feature to the web app so that users can authenticate through a 3rd party authorization server.
The problem being, once I put a link (<a>
tag) or run a window.location.replace()
or set the window.location.href
which points to a URL with a host name other than the one mentioned in the manifest file, it opens the URL in a new window, whereas I want it to just redirect to the URL within the Add-in window.
Any one's got any idea how to resolve this?
Thanks