Skip to main content
Level 2
Apr 27, 2020 6:39 PM UTC
Solved

Managing Dispatcher Custom Header from Authoring Screen

Hi all,

Hope everyone good !

 

Wondering if there is a way to Manage Dispatcher Custom Headers from AEM Authoring Screen instead of making changes directly in dispatcher. we wanted to grant "Super Authors" to add / update any Custom Headers using Authoring Screen itself rather than asking DevOps help (since authoring team will not have access to clientheaders.any / dispatcher.any files). Updating Headers will be once in a while activity - but will take some burden from DevOps team.

 

See example here from Adobe site

https://docs.adobe.com/content/help/en/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html#specifying-the-http-headers-to-pass-through-clientheaders

 

Wondering if there is any OOB feature or anything from ACS Common which can achieve this.

 

I am using AEM 6.4

 

 

 

EstebanBustamante
EstebanBustamanteAccepted solution
Adobe Champion and Community Advisor
Feb 14, 2025 9:56 PM UTC

Hi,

 

I don't think there's anything that directly updates the dispatcher files, if that’s what you're asking. These are two separate areas for the sake of all of us. What is typically done is using Sling servlets to inject headers, but this is specifically for adding extra headers to a request. This approach is editable, and you could even create some sort of UI, but it doesn't go beyond that. Here’s an example of what I’m referring to: https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/http/headers/impl/AbstractDispatcherCacheHeaderFilter.java

 

Hope this helps

Esteban Bustamante

2 replies

EstebanBustamante
Adobe Champion and Community Advisor
EstebanBustamanteAdobe Champion and Community AdvisorAccepted solution
Adobe Champion and Community Advisor
Feb 14, 2025 9:56 PM UTC

Hi,

 

I don't think there's anything that directly updates the dispatcher files, if that’s what you're asking. These are two separate areas for the sake of all of us. What is typically done is using Sling servlets to inject headers, but this is specifically for adding extra headers to a request. This approach is editable, and you could even create some sort of UI, but it doesn't go beyond that. Here’s an example of what I’m referring to: https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/http/headers/impl/AbstractDispatcherCacheHeaderFilter.java

 

Hope this helps

Translate
Esteban Bustamante
kautuk_sahni
Level 9
Mar 4, 2025 1:01 PM UTC

@rohitp23277067 Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Translate
Kautuk Sahni