You are here

public static function KillXFrameOptions::getSubscribedEvents in Acquia Content Hub 8.2

File

modules/acquia_contenthub_preview/src/EventSubscriber/KernelResponse/KillXFrameOptions.php, line 19

Class

KillXFrameOptions
Removes the x-frame-options header from previews.

Namespace

Drupal\acquia_contenthub_preview\EventSubscriber\KernelResponse

Code

public static function getSubscribedEvents() {

  // Adds the event in the list of KernelEvents::RESPONSE with priority -10.
  $events[KernelEvents::RESPONSE][] = [
    'onKernelResponse',
    -10,
  ];
  return $events;
}