Getting CORS error while using azure communication services

Karan S 21 Reputation points
2022-09-22T11:07:44.573+00:00

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.
810 questions
{count} votes

Accepted answer
  1. Grmacjon-MSFT 17,456 Reputation points
    2022-09-27T21:38:26.753+00:00

    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

    Thanks,
    Grace

    ------------------------------------------------------------------------------------------------------------------------------

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful