Add support for preflight requests.