Tag requests with geolocation data
Add geolocation data about the client browser as extra headers in any requests from Fastly to your origin.
VCL
Use this solution in your VCL service (click RUN below to test this solution or clone it to make changes):
Compute
Use this solution in your Compute service:
- Go
- JavaScript
- Rust
This page is part of a series in the Geolocation use case.
User contributed notes
BETADo you see an error in this page? Do you have an interesting use case, example or edge case people should know about? Share your knowledge and help people who are reading this page! (Comments are moderated; for support, please contact Fastly support)