We were thinking of using Supabase for this project because we can deploy an edge function that handles CORS and sends th request to the db function. Supabase JWT tokens became a nightmare to try and solve. This is the snippet for CORS

  if (req.method === 'OPTIONS') {
    return new Response(null, {
      status: 204,
      headers: {
        "Access-Control-Allow-Origin": "*",
        "Access-Control-Allow-Methods": "POST, OPTIONS",
        "Access-Control-Allow-Headers": "Content-Type, Authorization",
      },
    });
  }
type or paste code here

The trick is putting this here. I will give the toolbox a look - it’s already installed.