Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When encountering a Cross-Origin Resource Sharing (CORS) error while trying to connect to XERO using an Angular application, it means that the browser is blocking the request from the application to the XERO API endpoint due to security reasons. The browser is restricting the access to the resource across domains. The Xero API endpoint https://api.xero.com/connections does not allow HTTP requests from other origins, and the browser is blocking the request from the Angular application as it is coming from a different domain. To overcome this issue, XERO API needs to support CORS or use a proxy server to forward the API calls from the Angular application to the XERO API.