Problem with Azure AD Application Proxy and Single Page Application App

Fernando Ramos Hernández 21 Reputation points
2020-11-06T14:00:16.597+00:00

Good Morning,

We have multiple web applications running with the Azure application proxy. They are SPA applications (ReactJs) in which all calls are via Ajax.

Our problem occurs when a user has been connected for more than an hour. At that point, when making any Ajax call, they get a CORS error and the application is left in an inconsistent state.

When the user takes more than an hour, the proxy redirects him to login.microsoftonline.com / ... to check if his login is correct, but this check fails when we try to do it via Ajax. (see screenshot)

38073-error-cors-proxy.png

Is there any solution for this? Is there a way to avoid this redirect?

Thanks greetings.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,358 questions
{count} votes

Accepted answer
  1. James Hamil 24,296 Reputation points Microsoft Employee
    2020-11-09T22:45:13.37+00:00

    Hi! I've checked with our escalation team. Please look over this document. If these suggestions don't fix your issue, please reply back and we will continue to investigate.

    Best,
    James


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.