官术网_书友最值得收藏!

  • Learning Drupal 8
  • Nick Abbott Richard Jones
  • 80字
  • 2021-07-16 09:36:51

Trusted host patterns

If you visit the page /admin/reports/status then you will see a warning informing you that Trusted Host Settings are not enabled.

Drupal 8 use a trusted host mechanism, where site administrators can whitelist hostnames. The mechanism now can be configured in the settings.php file.

Setting the pattern as show here will inform Drupal that all sites hosted locally using the Dev Desktop – this with a URL ending in '.dd' - are trusted.

$settings['trusted_host_patterns'] = array(
  '^.*\.dd$',
  );
主站蜘蛛池模板: 龙川县| 沾益县| 苗栗市| 高要市| 青河县| 兰州市| 台中县| 连州市| 水富县| 巫山县| 永平县| 深圳市| 乐东| 吴忠市| 莱州市| 梨树县| 靖边县| 鲁山县| 灌南县| 长白| 项城市| 文水县| 拉萨市| 镇安县| 化德县| 准格尔旗| 湖南省| 江阴市| 汶川县| 平顺县| 宾阳县| 和平区| 贺州市| 米脂县| 邯郸县| 常州市| 涞水县| 玛曲县| 宽城| 游戏| 泾源县|