allow coor request (tested with jquery)

$.ajax({url: "http://localhost:8080/api/scala", type: "POST", contentType: "application/json; charset=utf-8", data: JSON.stringify({code: "1+1", test: "2+2"}) });