End the middleware chain after writing preflight