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 Kb46cfb84e46e
diff --git a/apps/web/app/api/links/route.ts b/apps/web/app/api/links/route.tsindex c296e51e40..0f2a757d31 100644--- a/apps/web/app/api/links/route.ts+++ b/apps/web/app/api/links/route.ts@@ -94,7 +94,12 @@ export const POST = withWorkspace();}- return NextResponse.json(response, { headers });+ return NextResponse.json(response, {+ headers: {+ ...headers,+ ...CORS_HEADERS,+ },+ });} catch (error) {throw new DubApiError({code: "unprocessable_entity",