I believe in `corsHeaders()`, in `header('Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS');` the PATCH method is missing. Thanks for sharing the very useful code!