Share via

Frontend is getting CORS issue using APIM

Ravi Kunapareddy 0 Reputation points
2026-02-03T04:07:03.2033333+00:00

guide:1 Access to XMLHttpRequest at 'https://api.abdddd.ai/dev-api/api/v1/auth/login' from origin 'https://dev.abdddd.ai' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.


1 answer

Sort by: Most helpful
  1. Aditya N 2,985 Reputation points Microsoft External Staff Moderator
    2026-02-03T05:27:07.4666667+00:00

    Hi @Ravi Kunapareddy

    Thanks for letting us know that you have resolved your issue by adding the globalHeaders. Please feel free to reach out to us in case of any assistance, we're happy to help you. https://learn.microsoft.com/en-us/troubleshoot/entra/entra-id/app-integration/troubleshoot-cross-origin-resource-sharing-issues?wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider#symptoms

    Was this answer helpful?

    0 comments No comments

Your answer

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