CORS hook for the Sails framework.