phoenix-media / magento2-additional-http-header
Installs: 1 089
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
This package is auto-updated.
Last update: 2024-10-29 05:47:47 UTC
README
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
- Install the module via Composer:
composer require phoenix-media/magento2-additional-http-header
- Enable it
bin/magento module:enable Phoenix_AdditionalHttpHeader
- 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.