title: POST request to Activiti REST API causes CORS issue when using Content-Type:application/json
body: <p>I'm using AngularJS to consume Activit REST resources. All GET operations works as expected but, when I try to POST to /runtime/process-instances with Content-Type:application/json, it fails on the preflight. As you can see, there's no 'Access-Control-Allow-Origin' in the response header.</p>
  
  <p><img src="https://cloud.githubusercontent.com/assets/5201388/7544957/2dc08936-f5a8-11e4-8a9a-094d6fcd7205.png" alt="2015-05-08 17_29_07-activiti rest caller net"></p>
  
  <p>When I change the Content-Type to application/x-www-form-urlencoded;charset=utf-8, for example, the 'Access-Control-Allow-Origin' comes in the response header but as we know, my POST won't work as API expects it to have a content-type:application/json</p>
  
  <p><img src="https://cloud.githubusercontent.com/assets/5201388/7545095/5d9daaca-f5a9-11e4-8e34-753e24c0d449.png" alt="2015-05-08 17_39_01-activiti rest caller net"></p>
  
  <p>How can I get around the issue?</p>
  
  <p>Appreciate any input!</p>