question

Panos-5282 avatar image
0 Votes"
Panos-5282 asked sikumars answered

Azure Application CORS

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

azure-ad-application-proxy
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

sikumars avatar image
0 Votes"
sikumars answered

Hello @Panos-5282,

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.