Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

AEM Cloud Service | Getting geo location header in publish

Avatar

Level 2

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-delive...

 

@kautuk_sahni 

 

Thanks in Advance

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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-c...

 

 

View solution in original post

5 Replies

Avatar

Community Advisor

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!

Avatar

Employee

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.

Avatar

Correct answer by
Employee Advisor

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-c...

 

 

Avatar

Administrator

@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

Avatar

Level 1

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