The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update route.ts
Kiran K36ef941f8ff3
diff --git a/apps/web/app/api/track/click/route.ts b/apps/web/app/api/track/click/route.tsindex 5b8e7e56f8..163d2ea4d7 100644--- a/apps/web/app/api/track/click/route.ts+++ b/apps/web/app/api/track/click/route.ts@@ -67,6 +67,11 @@ export const POST = async (req: Request) => {const hostname = sourceUrl?.hostname.replace(/^www\./, "");if (!hostname || !allowedHostnames.includes(hostname)) {+ console.error("Hostname not allowed.", {+ hostname,+ allowedHostnames,+ });+return new Response(null, {status: 204,headers: CORS_HEADERS,