The HTTP request object is now passed to the doCORS function.