You are here

public static function ResponseFrameOptions::getSubscribedEvents in Commerce Demo 8.2

File

src/EventSubscriber/ResponseFrameOptions.php, line 31

Class

ResponseFrameOptions
Sets the 'Content-Security-Policy' header to allow embedding in iFrame.

Namespace

Drupal\commerce_demo\EventSubscriber

Code

public static function getSubscribedEvents() {

  // Response: set header content security policy.
  $events[KernelEvents::RESPONSE][] = [
    'setHeaderContentSecurityPolicy',
  ];
  return $events;
}