hello, i'm trying to implement the authentication, i want to check the feasibility of connecting an angular client to acumatica if is possible i want to get solution.
Best answer by Gabriel Michaud
You will have to setup a reverse proxy to work around the CORS restrictions. We faced a similar problem when working on the browser-based version of our popular Excel reporting add-on, Velixo Reports and implementing the proxy with nginx.
Depending on the stack you use you might want to use something different; there’s many open source projects out there if you want to research this further:
- NGINX and reverse proxy: https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
- Reverse proxy in .NET Core: https://www.syntaxsuccess.com/viewarticle/creating-a-reverse-proxy-in-dotnet-core
If you have access to the web.config file of the site you are integrating with, you could also modify it to allow cross-origin requests, but I don’t recommend this if you’re building an application that will support multiple instances hosted in different locations.