Ask Your Question
1

What does it mean when encountering a CORS error while trying to connect to XERO using an Angular application, with the API endpoint being https://api.xero.com/connections?

asked 2022-07-06 11:00:00 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-03-19 12:00:00 +0000

ladyg gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-07-06 11:00:00 +0000

Seen: 15 times

Last updated: Mar 19 '23