You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for creating this library. When using it in my Angular project, and want to try to create an invoice (example code taken from this repo), I am getting an CORS Error, preventing me from creating the invoice in lexoffice. With my local Postman and a generic request, everything is working fine. Can you please advice what to do in this case? In Lexoffice, I don't know a way to configure, which host may access the api.
Thanks and best regards
The text was updated successfully, but these errors were encountered:
CORS only applies when you use the api in a browser environment. As this would leak your Lexoffice API key it isn't intended and therefore the Lexoffice API doesn't apply any CORS headers.
The proper solution would be to write a backend which consumes the api and responds to the frontend with the needed data. If another service (e.g. a proxy) handles authorization and you want to use the api on the client side, you could use a CORS proxy.
Hi guys,
thanks for creating this library. When using it in my Angular project, and want to try to create an invoice (example code taken from this repo), I am getting an CORS Error, preventing me from creating the invoice in lexoffice. With my local Postman and a generic request, everything is working fine. Can you please advice what to do in this case? In Lexoffice, I don't know a way to configure, which host may access the api.
Thanks and best regards
The text was updated successfully, but these errors were encountered: