Skip to content

Instantly share code, notes, and snippets.

@adenot
Created June 19, 2016 03:29
Show Gist options
  • Save adenot/1c322abc1337ef2aabcd19a2b97d61a4 to your computer and use it in GitHub Desktop.
Save adenot/1c322abc1337ef2aabcd19a2b97d61a4 to your computer and use it in GitHub Desktop.
Cloudfront headers passed to the origin from a CURL request. (with "Forward Headers: All" option)
{
"host": "staging.REDACTED",
"x-amz-cf-id": "TeSvfNKhljGl5v1Nldr0ApgX0LbmW25-sfTbOvU-kfSxjBAszhQNOQ==",
"connection": "Keep-Alive",
"user-agent": "curl/7.47.0",
"via": "1.1 74b217f6de96253e0ed5551fd50bc165.cloudfront.net (CloudFront)",
"x-forwarded-for": "52.62.49.205",
"cloudfront-is-mobile-viewer": "false",
"cloudfront-is-tablet-viewer": "false",
"cloudfront-is-smarttv-viewer": "false",
"cloudfront-is-desktop-viewer": "true",
"cloudfront-viewer-country": "AU",
"accept": "*/*",
"cloudfront-forwarded-proto": "https"
}
@adenot
Copy link
Author

adenot commented Jun 19, 2016

Notice how cloudfront uses cloudfront-forwarded-proto instead of x-forwarded-proto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment