I am using the example "Add true clientIP to request". I have followed the example and deployed a cloudfront example but I am not able to see the ip as part of the request.
function handler(event) {
var request = event.request;
var clientIP = event.viewer.ip;
console.log("test");
//Add the true-client-ip header to the incoming request
request.headers['true-client-ip'] = {value: clientIP};
return request;
I am using the example "Add true clientIP to request". I have followed the example and deployed a cloudfront example but I am not able to see the ip as part of the request.
function handler(event) { var request = event.request; var clientIP = event.viewer.ip;
}