We have an React Application calling the Contacts API via AWS Lambda since we were getting CORS issue while trying to access the API directly from React APP. But even after implementing a AWS Lambda function we are still getting the same CORS error. This is really urgent can anyone please help. The error
Access to XMLHttpRequest at 'https://devapi.ourdomain.com/crm/' 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.
@NUdayakumar@dennisedson if you're getting CORS errors its because you are trying to access an API designed for servers from the browser. Can you make the request via node.js on the server instead of via the browser?
@NUdayakumar@dennisedson if you're getting CORS errors its because you are trying to access an API designed for servers from the browser. Can you make the request via node.js on the server instead of via the browser?
Thanks for the responses. We were able to solve this by creating an API endpoint and lambda function in AWS. The contact creation is now working and really appreciate the help.