Running a web proxy is not inherently illegal, but can cross legal or ethical lines.
Serverless Proxy
Use the Unblocker middleware options to strip out identifying headers if privacy is your main concern, though keep in mind Vercel appends its own deployment tracking headers ( x-vercel-id ) automatically. node unblocker vercel
Requests to /api/users on your Vercel deployment would now forward transparently to https://your-target-api.com/users . The Vercel CDN caches these responses at the edge, which can actually reduce latency by up to 60% compared to direct connections. Running a web proxy is not inherently illegal,