Buckets:
| import type { NextApiRequest, NextApiResponse } from "next"; | |
| export default async function Handler( | |
| req: NextApiRequest, | |
| res: NextApiResponse, | |
| ) { | |
| const form = new URLSearchParams(); | |
| form.append("secret", process.env.CLOUDFLARE_TURNSTILE_SECRET_KEY); | |
| form.append("response", req.body["cf-turnstile-response"]); | |
| form.append("remoteip", req.headers["x-forwarded-for"] as string); | |
| const result = await fetch( | |
| "https://challenges.cloudflare.com/turnstile/v0/siteverify", | |
| { method: "POST", body: form }, | |
| ); | |
| const json = await result.json(); | |
| res.status(result.status).json(json); | |
| } | |
Xet Storage Details
- Size:
- 606 Bytes
- Xet hash:
- a0bdca020ad1d05cfcc3a1f1a7b18e28dbe507947ddfbd20ee14d2be475b1e18
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.