Skip to main content
deleted 58 characters in body
Source Link
4uk4
  • 101.7k
  • 7
  • 173
  • 217

The simplest method is to writeremove the header in a custom EventSubscriber which removes the header:

$response->headers->remove('X-Generator');

like in this example

See https://drupal.stackexchange.com/a/201297/47547

where you need to replace this line only for an example.

The simplest method is to write a custom EventSubscriber which removes the header

$response->headers->remove('X-Generator');

like in this example

https://drupal.stackexchange.com/a/201297/47547

where you need to replace this line only.

The simplest method is to remove the header in a custom EventSubscriber:

$response->headers->remove('X-Generator');

See https://drupal.stackexchange.com/a/201297/47547 for an example.

replaced http://drupal.stackexchange.com/ with https://drupal.stackexchange.com/
Source Link

The simplest method is to write a custom EventSubscriber which removes the header

$response->headers->remove('X-Generator');

like in this example

http://drupal.stackexchange.com/a/201297/47547https://drupal.stackexchange.com/a/201297/47547

where you need to replace this line only.

The simplest method is to write a custom EventSubscriber which removes the header

$response->headers->remove('X-Generator');

like in this example

http://drupal.stackexchange.com/a/201297/47547

where you need to replace this line only.

The simplest method is to write a custom EventSubscriber which removes the header

$response->headers->remove('X-Generator');

like in this example

https://drupal.stackexchange.com/a/201297/47547

where you need to replace this line only.

Source Link
4uk4
  • 101.7k
  • 7
  • 173
  • 217

The simplest method is to write a custom EventSubscriber which removes the header

$response->headers->remove('X-Generator');

like in this example

http://drupal.stackexchange.com/a/201297/47547

where you need to replace this line only.