Managing Dispatcher Custom Header from Authoring Screen | Community
Skip to main content
Level 2
April 27, 2020
Solved

Managing Dispatcher Custom Header from Authoring Screen

  • April 27, 2020
  • 2 replies
  • 1597 views

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

 

 

 

Best answer by EstebanBustamante

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

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
February 14, 2025

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
kautuk_sahni
Community Manager
Community Manager
March 4, 2025

@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!

Kautuk Sahni