From 5a51ce0b8c288f897c3d2b890040d8afa2bd30d2 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 11 Jul 2026 13:02:42 +0000 Subject: [PATCH] Changes Co-authored-by: wolfoftyreso-debug <250630591+wolfoftyreso-debug@users.noreply.github.com> --- supabase/functions/create-checkout/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/supabase/functions/create-checkout/index.ts b/supabase/functions/create-checkout/index.ts index 787e1d4..e1b06da 100644 --- a/supabase/functions/create-checkout/index.ts +++ b/supabase/functions/create-checkout/index.ts @@ -1,7 +1,12 @@ -import { corsHeaders } from "npm:@supabase/supabase-js@2/cors"; import { z } from "npm:zod@3.23.8"; import { type StripeEnv, createStripeClient } from "../_shared/stripe.ts"; +const corsHeaders = { + "Access-Control-Allow-Origin": "*", + "Access-Control-Allow-Headers": "authorization, x-client-info, apikey, content-type", + "Access-Control-Allow-Methods": "POST, OPTIONS", +}; + const PRICE_PER_KG_ORE = 32500; // 325 kr in öre const WEEKS_PER_MONTH = 4;