AEM Cloud Service | Getting geo location header in publish | Community
Skip to main content
selvendranr9588
Level 2
December 5, 2021
Solved

AEM Cloud Service | Getting geo location header in publish

  • December 5, 2021
  • 5 replies
  • 4106 views

Hi Team,

 

Please help me understand how do we get the x-aem-client-country and x-aem-client-continent headers in AEM publish instance.

 

At present the headers are coming only in author and not in publish dispatcher. We are using AEM cloud service and all the environments are managed via cloud manager.

 

Reference:

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/implementing/content-delivery/cdn.html?lang=en

 

@kautuk_sahni 

 

Thanks in Advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

The dispatcher allows you to filter headers, which are then forwarded to the AEM instance (or blocked). 

Make sure that these headers are provided there, as they are not included by default.

 

See the documentation here:  https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html?lang=en#specifying-the-http-headers-to-pass-through-clientheaders

 

 

5 replies

Asutosh_Jena_
Community Advisor
Community Advisor
December 6, 2021

Hi @selvendranr9588 

 

By default AEM managed CDN adds headers to each request with x-aem-client-country and x-aem-client-continent header.

 

If your publish instance is managed via AEM Cloud Manager then it should appear. If not raise a ticket with Adobe Support and they should be able to resolve the issue. There is no other configuration that needs to be done.

 

Thanks!

Adobe Employee
January 25, 2022

The geolocation headers are coming from CDN to the origin.

 

The flow should be something like request -> cdn -> (cdn appends headers) -> dispatcher -> aem so one needs to fetch it on apache and redirect or do  things.

 

If the headers are not visible in the flow(you need to explicitly log it to see them), you should reach out to AEM Support or your CSME along with your dispatcher configs to review.

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
January 25, 2022

The dispatcher allows you to filter headers, which are then forwarded to the AEM instance (or blocked). 

Make sure that these headers are provided there, as they are not included by default.

 

See the documentation here:  https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html?lang=en#specifying-the-http-headers-to-pass-through-clientheaders

 

 

kautuk_sahni
Community Manager
Community Manager
May 30, 2022

@selvendranr9588 

[Webinar | AEM GEMs] Looking under the hood - Cloud Manager 2022 | Register: https://adobe.ly/3t4jfgp  & Ask Questions related to this Webinar: https://adobe.ly/3O0rdzd 

Date &Time: Wednesday, June 15, 2022 - 8 am PDT OR 5 pm CET OR 8.30 pm IST
Speakers: Remus Stratulat & Shankari Panchapakesan

Share this within your Organisation and with your AEM peers!!

Kautuk Sahni
September 22, 2023

Is any one know  aem provides two headers x-aem-client-country and x-aem-client-continent if  I want the  want headers for state or for city.
as fastly tell in his documentation
i want to know that  aem already configured city headers or state 
what is the header name for city or state. that aem provide
Please let me know is possible or not
Thanks