Skip to content

Instantly share code, notes, and snippets.


fabpot/floc.php Secret

Created Apr 29, 2021
What would you like to do?
namespace App\EventListener;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\ResponseEvent;
class PermissionsPolicySubscriber implements EventSubscriberInterface
public function addPermissionsPolicyHeader(ResponseEvent $event): void
$event->getResponse()->headers->set('permissions-policy', 'interest-cohort=()');
public static function getSubscribedEvents()
return [
ResponseEvent::class => 'addPermissionsPolicyHeader',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment