Drupal is a registered trademark of Dries Buytaert

debug_headers

No security coverage
View on drupal.org

This module helps to spot that headers are created correctly on reverse proxy systems. By printing out the headers in a block you can look at issues with caused by not sending the correct headers to Drupal.

For example, when using reverse proxy services or CDNs you will probably want the X-Forwarded-Host header to be sent by the service so that Drupal can respond with the correct domain.

Features

Currently only adds a block that shows the available headers for the page.

This header block can render as HTML comments in order to hide the headers from view. There are some security concerns in doing this so you should only do this if you really need to.

Post-Installation

- Install the module as normal.
- Give the user roles you want to allow access to the sessions page the
permission "view debug headers block".
- Add the Debug Headers block to a page or pages that you want to test.
- When you visit the page you will see a list of the headers reported by the
application.

Similar projects

trusted_proxy_headers_debug - Adds a single page that allows the headers to be viewed, along with a few other reverse proxy settigns.

Supporting this Module

Support the development of this module through Patreon or www.hashbangcode.com

Community Documentation

To follow.

Activity

Total releases
1
First release
Jun 2025
Latest release
8 months ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.0.x-dev Dev Jun 27, 2025