![]() |
Drupal 8 New setting for trusted hostname configuration
Description:
It is possible to spoof the HTTP Host header for nefarious purposes, and trick Drupal into using a different domain name in several subsystems (particularly link generation). The Symfony framework provides a trusted host mechanism, where site administrators can whitelist hostnames. This mechanism can now be configured through settings.php. $settings['trusted_host_patterns'] $settings['trusted_host_patterns'] should be an array of regular expression patterns, without delimiters, representing the hosts you would like to allow. Examples If a site is run off of a single, canonical domain, then Code:
$settings['trusted_host_patterns'] = array(Code:
$settings['trusted_host_patterns'] = array( |
| All times are GMT +8. The time now is 10:43 AM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.