Getting CORS error while using azure communication services

Karan S 21 Reputation points

I am getting Cors error when calling azure communication services email API from localhost:3000

Access to XMLHttpRequest at '**************************************************/emails:send?api-version=2021-10-01-preview' from origin 'http://localhost:3000' 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.

How to solve this CORS error?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
713 questions
{count} votes

Accepted answer
  1. Grmacjon-MSFT 16,771 Reputation points

    Hi @Karan S ,

    You are getting this error because we do not currently have CORS enabled on our Email public endpoints . The engineering team is actively worked on it and should be released by end of this month. Please view the ACS docs for updates.

    Hope that helps. Please let us know if you have further questions



    --If the reply is helpful, please Upvote and Accept as answer--

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful