This is an excerpt from Manning's book hapi.js in Action. Login to get full access to this book.
In a similar way, as shown in the next listing, you can set CORS settings for an entire connection when creating one.