Good Day,
I am trying to access EspoCRM Api from another domain. Locally this is both on localhost but the requesting app runs port 5173, EspoCRM on 8082. See first screenshot attached.
CORS Middleware has been added recently (https://github.com/espocrm/espocrm/pull/2754) but when I add the supplied config to /data/config.php and clear the cache nothing changes in the API request.
I expect the headers Access-Control-Allow-Origin and Access-Control-Allow-Methods​ to be present.
Accessing the api directly in the browser works.
What am I doing wrong?
I am trying to access EspoCRM Api from another domain. Locally this is both on localhost but the requesting app runs port 5173, EspoCRM on 8082. See first screenshot attached.
CORS Middleware has been added recently (https://github.com/espocrm/espocrm/pull/2754) but when I add the supplied config to /data/config.php and clear the cache nothing changes in the API request.
I expect the headers Access-Control-Allow-Origin and Access-Control-Allow-Methods​ to be present.
Accessing the api directly in the browser works.
What am I doing wrong?
Comment