Add CORS support to service template