Drupal Enable Trusted Host Settings

Profile picture for user devraj

Once you will navigate to your status report you might see an error related to Trusted Host Settings. 

Drupal Enable Trusted Host Settings

To get rid of this error and enable Trusted host settings follow below steps.

Step 1: Navigate to sites -> default folder

Step 2: open settings.php 

Step 3: Paste below code at the end of settings.php

$settings['trusted_host_patterns'] = array(
  '^programsbuzz\.com$',
  '^.+\.programsbuzz\.com$',
);

Replace programsbuzz with your domain name.

Tags