XeroAPI / xero-node

Xero Node SDK for OAuth 2.0 generated from XeroAPI/Xero-OpenAPI
http://developer.xero.com/
MIT License
192 stars 155 forks source link

CORS ERROR #681

Open utkarsh3020 opened 2 months ago

utkarsh3020 commented 2 months ago

Hi, I am getting cors error while hitting the API's from the frontend react app, while its working fine when hits on backend live sever port.

github-actions[bot] commented 2 months ago

PETOSS-412

github-actions[bot] commented 2 months ago

Thanks for raising an issue, a ticket has been created to track your request

utkarsh3020 commented 2 months ago

Hi, is there anybody who can help me regarding this issue?

RettBehrens commented 2 months ago

Hi @utkarsh3020 Xero-Node is a backend library. Further, Xero API does not support CORS so if you're trying to make calls from a react app you'll need to do so via a server intermediary