API REST Authentication

Enable CORS in server side

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