Rename endPreflight to endPreflightRequests.