Requests to AppDomain defined domains from classic Outlook event handler are blocked #6261
Unanswered
mserveApplied
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have an Outlook add-in that defines some URLs used to support event based activation features in its manifest like so:
We then define the
WebApplicationInfoelement.Our manifest also contains a list of
AppDomainelements that are allowed to be called.In new Outlook we expect
commands.htmlto handle events like taking action after sending an email. This works as expected and requests to the addresses defined byAppDomainelements are not blocked when made from this context. We expect the same workflow in classic Outlook to be handled bylaunchevent.js. However, we are noticing that requests made from this file are blocked to all domains aside from the domain the handler file is running in. For example, requests made tohttps://{our_domain_here}/some_pathfrom thelaunchevent.jsfile will not be blocked but a request tohttps://{separate_domain_from_AppDomain_element}/some_other_pathis blocked.The options we're aware of to debug the classic Outlook portion are pretty limited. We've enabled runtime debugging and are logging the results of requests made. Unfortunately, we are seeing a very generic "network request failed" message in the response. Our assumption is that its a CORS issue since requests are not blocked when the handler origin matches the request domain. If this is the case, does classic Outlook ignore the
AppDomainelements from the manifest and only allow same origin requests?Beta Was this translation helpful? Give feedback.
All reactions