Hi,
I am able to call Rest API without any issue when user Authentication is off. I got the error when I removed comments related to authentication on in Rest-engine web.xml.
you are trying to execute a request towards your rest api from your webapp. I think from the browsers perspective you are sending your request to different domain, so you are getting a CORS exception. You can read here about different approaches available to solve problem.
Thank you for your comment. I already handled CORS issue. If I do not turn on the Authentication, it work fine. After I turn on the Authentication, I have to add one line code
I would still recommend you handling cors issue by adding HTTP server with proxy pass in front of your application instead of filter in web.xml, this will be much cleaner.
there is no example existing yet, but this is really not related to camunda in any case, just a normal proxy pass configuration. You can read more here or here.