API REST Authentication

I enabled the basic authentication in the Rest API but I can not do angular solving with the API passing user and password in the header, this error always appears
OPTIONS http: // localhost: 8080 / engine-rest / process-definition / key / processesDigitals / start 401 (Unauthorized).
by POSTMAN works perfectly

I followed guidelines according to this site https://medium.com/@gigioSouza/resolvendo-o-problema-do-cors-com-angular-2-e-o-angular-cli-7f7cb7aab3c2
and it worked in my angular project, but I would not have to configure wildfly without having to use proxy

the hint for development works fine but how to put this proxy into production if the server I’m running is wildfly instead of the development node

Enable CORS in server side

And follow this link for enabling basic auth implementation in camunda.