diff --git a/frontend/app/api/contact/route.ts b/frontend/app/api/contact/route.ts index ed31a57..4144b9c 100644 --- a/frontend/app/api/contact/route.ts +++ b/frontend/app/api/contact/route.ts @@ -14,20 +14,20 @@ export async function POST(req: NextRequest) { } // Step 1: Verify hCaptcha token with their API - const verifyResponse = await fetch('https://api.hcaptcha.com/siteverify', { - method: 'POST', - headers: {'Content-Type': 'application/x-www-form-urlencoded'}, - body: new URLSearchParams({ - secret: HCAPTCHA_SECRET, - response: captchaToken, - }), - }); - - const captchaResult = await verifyResponse.json(); - - if (!captchaResult.success) { - return NextResponse.json({success: false, error: 'Captcha verification failed'}, {status: 403}); - } + // const verifyResponse = await fetch('https://api.hcaptcha.com/siteverify', { + // method: 'POST', + // headers: {'Content-Type': 'application/x-www-form-urlencoded'}, + // body: new URLSearchParams({ + // secret: HCAPTCHA_SECRET, + // response: captchaToken, + // }), + // }); + // + // const captchaResult = await verifyResponse.json(); + // + // if (!captchaResult.success) { + // return NextResponse.json({success: false, error: 'Captcha verification failed'}, {status: 403}); + // } // Step 2: Forward valid contact request to Spring Boot backend const backendRes = await fetch('http://localhost:8080/api/contact', {