Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Debug Headers

No security coverage
View on drupal.org

This module helps diagnose issues with how web server headers are handled, particularly when using reverse proxies or CDNs. It displays current request headers in a block, allowing developers to verify that Drupal is receiving the correct information, such as the `X-Forwarded-Host` header.

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
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

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