Hello EspoCRM Developers,
I am trying to send a POST request to EspoCRM using the API from my website, which is hosted on a different domain.
I have created an API user, assigned the necessary roles, and tested the setup using Postman. Everything works fine in Postman. However, when I attempt to send the POST request from my website, I encounter the following error:
Access to fetch at 'https://abc.com/api/v1/#entity' from origin 'http://127.0.0.1:8000' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I am using Ubuntu as my server environment.
Despite trying to host the website on a server, I still encounter CORS issues. Could you please guide me on how to resolve this and allow my website to communicate with EspoCRM?
Thank you for your assistance.
I am trying to send a POST request to EspoCRM using the API from my website, which is hosted on a different domain.
I have created an API user, assigned the necessary roles, and tested the setup using Postman. Everything works fine in Postman. However, when I attempt to send the POST request from my website, I encounter the following error:
Access to fetch at 'https://abc.com/api/v1/#entity' from origin 'http://127.0.0.1:8000' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I am using Ubuntu as my server environment.
Despite trying to host the website on a server, I still encounter CORS issues. Could you please guide me on how to resolve this and allow my website to communicate with EspoCRM?
Thank you for your assistance.
Comment