From 8e8214837a3df6f6d5facb883bd7606871c036a7 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 10:42:32 +0000 Subject: [PATCH] Unified mod display sources Co-authored-by: felix-fx-top <253056634+felix-fx-top@users.noreply.github.com> --- supabase/functions/fetch-curseforge/index.ts | 3 +++ supabase/functions/fetch-mods/index.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/supabase/functions/fetch-curseforge/index.ts b/supabase/functions/fetch-curseforge/index.ts index a1e65d1..bf220d8 100644 --- a/supabase/functions/fetch-curseforge/index.ts +++ b/supabase/functions/fetch-curseforge/index.ts @@ -3,6 +3,9 @@ import { serve } from "https://deno.land/std@0.168.0/http/server.ts"; const corsHeaders = { "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "authorization, x-client-info, apikey, content-type, x-supabase-client-platform, x-supabase-client-platform-version, x-supabase-client-runtime, x-supabase-client-runtime-version", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "DENY", + "Referrer-Policy": "strict-origin-when-cross-origin", }; const CF_BASE = "https://api.curseforge.com/v1"; diff --git a/supabase/functions/fetch-mods/index.ts b/supabase/functions/fetch-mods/index.ts index eade488..686d22d 100644 --- a/supabase/functions/fetch-mods/index.ts +++ b/supabase/functions/fetch-mods/index.ts @@ -3,6 +3,9 @@ import { serve } from "https://deno.land/std@0.168.0/http/server.ts"; const corsHeaders = { "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "authorization, x-client-info, apikey, content-type, x-supabase-client-platform, x-supabase-client-platform-version, x-supabase-client-runtime, x-supabase-client-runtime-version", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "DENY", + "Referrer-Policy": "strict-origin-when-cross-origin", }; const MODRINTH_BASE = "https://api.modrinth.com/v2";