Correctly set the cookie path in the front mode in debug mode (see #6723)