You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In production, always restrict remote images to your Drupal host:
@@ -346,6 +359,16 @@ In production, always restrict remote images to your Drupal host:
346
359
- Set `trusted_host_patterns` in Drupal `settings.php` (prevents Host-header injection issues).
347
360
- Set “Drupal URL” in the module settings so generated `drupal_url` values are deterministic.
348
361
362
+
Example `settings.php`:
363
+
364
+
```php
365
+
$settings['trusted_host_patterns'] = [
366
+
'^example\\.com$',
367
+
'^www\\.example\\.com$',
368
+
'^cms\\.example\\.com$',
369
+
];
370
+
```
371
+
349
372
### 4) Keep secrets out of config exports
350
373
351
374
This module avoids storing secrets in config exports (config sync). Secrets are stored in Drupal state by default, and you can optionally override them in `settings.php` for deterministic deploys:
0 commit comments