添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

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.