To allow jQuery Ajax requests, we need to end the request when dealing with an OPTIONS request.