web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Microsoft Dynamics Office Add-in (Excel Data Connector)

(0) ShareShare
ReportReport
Posted on by 22

We are currently in the process of implementing Microsoft Dynamics for Finance and Operations (on-premises). The ERP system is deployed in a separate domain from the primary domain used for other services such as email etc, however there are trusts between the two domains. User machines a registered on the primary domain. One can access the D365 application via web using either credentials from the primary domain or the ERP domain. My challenge comes with the excel add-in. I managed to make it work in the previous months just by installing a certificate in the primary domain. However, starting from last week the add-in is failing to authenticate users. Below are screenshots of the errors I am getting.

Debugger:

Access to XMLHttpRequest at 'https://<D365 URL>/namespaces/AXSF/OfficeApps/Public/ServerConfiguration?_=*************' from origin 'az689774.vo.msecnd.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
ajax.ts:157 GET https://<D365 URL>/namespaces/AXSF/OfficeApps/Public/ServerConfiguration?_=**************** net::ERR_FAILED

excel-win32-16.01.js:26 Warning: Office.js is loaded outside of Office client

Event Viewer:

Encountered error during OAuth authorization request.

Additional Data

Exception details:
Microsoft.IdentityServer.RequestFailedException: MSIS9230: Failed to authenticate the user as the request does not contain any authentication credentials.
at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthAuthorization.OAuthAuthorizationProtocolHandler.SignIn(OAuthAuthorizationRequestContext authorizationContext, SecurityToken securityToken, SecurityToken deviceSecurityToken, Boolean& ssoSignInAttempted)

May you kindly assist with a way out of this? I am using Excel for Office 365 and I am on the latest build.

I have the same question (0)
  • Munyah Profile Picture
    22 on at

    I just realized this could have been posted in the General forum, please bear with me.

  • André Arnaud de Calavon Profile Picture
    301,231 Super User 2025 Season 2 on at

    Hi Munhyah,

    When it was working before, there might be a change causing this access issue. The error is mentioning a CORS policy. I don't have knowledge about this. There is some description about CORS on the internet. en.wikipedia.org/.../Cross-origin_resource_sharing

    You can check with your system admininstrators if a certain change related to CORS or security has been applied.

  • Munyah Profile Picture
    22 on at

    Thanks. Andre.

    Unfortunately, no such changes were made. I have dug around CORS issues resolution but all the recommendations requires me to add some lines of code to the application. Which I don't really think I can do with the add-in.

    I will keep digging though.

  • Munyah Profile Picture
    22 on at

    .After a few days of digging around, I figured that the CORS mechanism is present in all chromium-based web browsers, thus Google Chrome and MS Edge included. Any machine on which either browser is installed seemingly forces the add-in to adopt the CORS policy thus the issue was only resolved by uninstalling both browsers. However, this is a temporary fix as we can’t force people to use IE. I will therefore communicate this to MS as I believe beyond reasonable doubt that this is a bug and the Excel add-in needs to be enhanced to support the CORS mechanism

  • Suggested answer
    Munyah Profile Picture
    22 on at

    Upon further troubleshooting, it seems it’s the ‘Microsoft Edge WebView2 Runtime’ application causing the login issues and uninstalling it will resolve the issues whether  one has Chrome or Edge installed on their machines.

    Notes from Microsoft:

    The WebView2 Runtime is a redistributable runtime and serves as the backing web platform for WebView2 apps. The concept is similar to Visual C++ or the .NET Runtime for C++/.NET apps. The Runtime contains modified Microsoft Edge (Chromium) binaries that are fine-tuned and tested for apps. The Runtime does not appear as a user-visible browser upon installation. For example, a user does not have a browser desktop shortcut or start menu entry.

     

  • Oualili Anas Profile Picture
    25 on at

    Hello Munyah 

     I‘m facing the same issue, did you find any solution for it ?

    thank you 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans