How to add Customizable header in Adobe Experience Manager as a Cloud Service In dispatcher

296 Views Asked by At

i want to add custom header in dispatcher configuration in Adobe Experience Manager as a Cloud Service I m adding this configuration

Header set X-XSS-Protection "1; mode=block"

when i m deploying the changes its not getting visible on dev domain same thing is working on adobe managed services

I have tried multiple approachrs. is there any specific file that we can set customizable header in Adobe Experience Manager as a Cloud Service? E.g.: I m adding here \dispatcher\src\conf.d\available_vhosts or we don't have access to do it to set headers

3

There are 3 best solutions below

1
ronnyfm On

You should try here: /conf.dispatcher.d/clientheaders/clientheaders.any

0
mkovacek On

You should add it into enabled_vhosts

/dispatcher/src/conf.d/enabled_vhosts/your_site.vhost

<IfModule mod_headers.c>
    Header set X-XSS-Protection "1; mode=block"
</IfModule>
0
g_arya On

try below code in your enabled vhost file:

<IfModule mod_headers.c>
   Header always set X-XSS-Protection "1; mode=block"
</IfModule>