We are unable to create contact using APIs on a react js application. We are facing the CORS policy blocking issue.
Please help us to fix the below error.
API URL: 'https://lawazem-744221652743434123.myfreshworks.com/crm/sales/api/contacts'
METHOD: post
Best answer by pradipta.chandra
Hi Hegery.
Thank you for reaching out to us. I am Pradipta, from the Freshsales team.
As per CORS policy, no websites can directly use our API from their front end. This is the expected behaviour as per our security measures and it is a policy that is applied on your website. Since you are trying to create a contact from your website, we suggest 2 solutions that you can use:
Thank you for reaching out to us. I am Pradipta, from the Freshsales team.
As per CORS policy, no websites can directly use our API from their front end. This is the expected behaviour as per our security measures and it is a policy that is applied on your website. Since you are trying to create a contact from your website, we suggest 2 solutions that you can use: