Why am I getting CORS error when calling POST?
I have a database of users on Azure and I’m trying to call POST from my React app. But every time i try it, I get this error: Access to XMLHttpRequest at ‘https://stin-backend-apimanag.azure-api.net/api/Users’ 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.
Here is how I´m calling POST from my React app: