cancel
Showing results for 
Search instead for 
Did you mean: 

How to add custom response header to every page?

How to add custom response header to every page?

Hi all,

 

I am new with Magento and found no information about how to add a simple response header to every page. Can anybody help me where and how it has to be done?

 

Thank you

2 REPLIES 2

Re: How to add custom response header to every page?

Hello @Serpent_Driver 

 

Please refer "How to Add Block’s Class Name Dynamically into Layout.xml File in Magento 2 "

 

Customize the path for custom.phtml file as per your requirement.

 

Hope it helps.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: How to add custom response header to every page?

Sorry, that doesn't helps me. I don't want to develop anything. I only need a simple but specific response header to every page like

 

header("header_name: header_value");

Is there no simple way to add a header?