Hi @steventao,
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.
Cheers,
Askar