Adding suport for CORS, so that JS and mobile apps can access the services (see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Server-Side_Access_Control#Preflighted_requests).