Installing Drupal 8 beta 10 results in an installation that reports that it is potentially insecure, because "trusted_host_patterns" in settings.php is not set-up.
In the vast majority of cases, wouldn't it make sense to automatically include the base URL as the a "trusted_host_patterns", so that the installed site is secured and does not throw up a warning message?
I would include several common "trusted_host_patterns", so that admins can see how this is set-up, eg.
# @code
$settings['trusted_host_patterns'] = array(
'www\.base_url\.com$',
# 'localhost',
# '^.+\.base_url\.com$',
# '^.+\.example\.org$',
);
# @endcodeI would also like to see the settings.php file converted to YAML file so that non-programmers can better understand it, and result in fewer support requests:
settings:
trusted_host_patterns:
www.base_url.com
localhost
# ^.+\.base_url\.com
# ^.+\.example\.org
);
Comments
Comment #8
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #9
smustgrave commentedSince there's been no follow up and as a feature request going to close out. It can always be re-opened
Thanks all!