It got a cors exception in the client when an exception is thrown in the server.
I get the following error in the client:
XMLHttpRequest cannot load https://xxxservice-cremersstijn.rhcloud.com/xxx. Origin https://xxx-cremersstijn.rhcloud.com is not allowed by Access-Control-Allow-Origin.
A runtime exception is thrown in the server.
When there is no exception, everything works fine. I expect a 500 when there is an exception.