Update CORS hook to bind routes to all methods.