<serviceProxy method="OPTIONS" port="8080">
<request>
<groovy>
def response = Response.ok().build()
response.header.add("Access-Control-Allow-Origin", "*");
response.header.add("Access-Control-Allow-Credentials", "true");
response.header.add("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT");
response
</groovy>
</request>
</serviceProxy>