Enforce root constraint only works with GET method.