Pantheon recommends adding the following to settings.php so pantheon URLs for dev/test/live sites are included in trusted_host_patterns. I'd like to do this in the settings.php file that is included by default for Backdrop Pantheon installs.
if (defined('PANTHEON_ENVIRONMENT')) {
if (in_array($_ENV['PANTHEON_ENVIRONMENT'], array('dev', 'test', 'live'))) {
$settings['trusted_host_patterns'][] = "{$_ENV['PANTHEON_ENVIRONMENT']}-{$_ENV['PANTHEON_SITE_NAME']}.pantheon.io";
$settings['trusted_host_patterns'][] = "{$_ENV['PANTHEON_ENVIRONMENT']}-{$_ENV['PANTHEON_SITE_NAME']}.pantheonsite.io";
}
}
Pantheon recommends adding the following to
settings.php
so pantheon URLs for dev/test/live sites are included intrusted_host_patterns
. I'd like to do this in the settings.php file that is included by default for Backdrop Pantheon installs.