Requester's public IP postal code now available in Vercel Functions
Vercel adds an x-vercel-ip-postal-code header to its Functions and Edge Middleware, exposing the postal code tied to a requester's public IP address.
The header is now part of , providing the postal code associated with the requester’s public IP address. This complements existing headers like , , and .x-vercel-ip-postal-codex-vercel-ip-countryx-vercel-ip-cityx-vercel-ip-country-regionVercel’s geolocation capabilities The header is accessible in Vercel Functions, including .
Here's a TypeScript example:x-vercel-ip-postal-codeEdge Middleware Postal codes are also available via the package:@vercel/functions For more information on headers and geolocation, see Vercel’s request header documentation. Read more