Skip to content

PHOENIX-MEDIA/magento2-additional-http-header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magento2 Additional HTTP Header

Sets additional HTTP headers in response

What it does

The module adds a header to the HTTP response. As an example implementation is sets the full action name of the request controller with the header "X-FULL_ACTION_NAME". The module can be easily extended by declaring new handlers in the di.xml (can be done in separate module). Each handler needs to implement the AdditionalHttpHeaderInterface API. For ease of use a HandlerAbstract class implements most of what is required.

How to use

  1. Install the module via Composer:
composer require phoenix-media/magento2-additional-http-header
  1. Enable it bin/magento module:enable Phoenix_AdditionalHttpHeader
  2. Install the module and rebuild the DI cache bin/magento cache:flush

How to configure

Find the modules configuration in the PHOENIX MEDIA section of your Magento configuration.

About

Sets additional HTTP headers in response

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages