Azure Application CORS

Panos 1 Reputation point
2021-04-07T12:44:11.253+00:00

Hello,
i have an OnPremise Application redirecting to Azure for Authentication and MFA.
I can MFA and authenticate on Azure but i get some errors while navigation on the application.

Access to XMLHttpRequest at 'https://login.microsoftonline.com/(redirected from 'https://PublicURL/api/v1//calendar?fromDate=2021-04-01&toDate=2021-04-30') from origin 'https://PublicURL' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

GET https://login.microsoftonline.com net::ERR_FAILED

Uncaught (in promise) Error: Network Error
at e.exports (createError.js:16)
at XMLHttpRequest.h.onerror (xhr.js:84)

and finally again the first cors error.

Is there anything i can do without afecting the code to get api and cors working during the redirection?

Thank you

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,909 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,571 Reputation points
    2021-04-20T07:24:23.013+00:00

    Hello @Panos ,

    Thanks for reaching out and apologize for delayed response.

    I would like share MS docs which cover detailed Understand and solve Azure Active Directory Application Proxy CORS issues.

    Hope this helps.

    ------
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments