Added CORS-Filter to jax-rs endpoint. Thanks to thetransactioncompany!