Frontend HTTP Header Icon

Frontend HTTP Header 

Besides the visual indicators, an environment marker on HTTP level is useful for the "developer view": debugging, curl checks, uptime monitoring and browser extensions can identify the environment without parsing the page.

The indicator adds a configurable header to every frontend response:

X-TYPO3-Environment: Development
Copied!
Browser devtools network panel showing the X-Typo3-Environment response header

You can register the indicator in your ext_localconf.php:

ext_localconf.php
use KonradMichalik\Typo3EnvironmentIndicator\Configuration\Handler;
use KonradMichalik\Typo3EnvironmentIndicator\Configuration\Indicator;
use KonradMichalik\Typo3EnvironmentIndicator\Configuration\Trigger;

Handler::addIndicator(
    triggers: [
        new Trigger\ApplicationContext('Development*')
    ],
    indicators: [
        new Indicator\Frontend\HttpHeader()
    ]
);
Copied!

Additional optional configuration keys:

  • name (string): The header name. Default is X-TYPO3-Environment.
  • value (string): The header value. Default is %context%. The placeholder %context% is replaced with the current application context.

A name or value that is not valid per 9110 is ignored and logged as a warning, so a misconfiguration cannot break frontend rendering.

The environment HTTP header can be disabled globally via the extension configuration.