.. include:: /Includes.rst.txt .. index:: Events; PolicyMutatedEvent .. _PolicyMutatedEvent: ================== PolicyMutatedEvent ================== .. versionadded:: 12.3 The PSR-14 event :php:`\TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\PolicyMutatedEvent` will be dispatched once all mutations have been applied to the current :ref:`Content Security Policy ` object, just before the corresponding HTTP header is added to the HTTP response object. This allows individual adjustments for custom implementations. Example ======= .. literalinclude:: _PolicyMutatedEvent/_MyEventListener.php :language: php :caption: EXT:my_extension/Classes/ContentSecurityPolicy/EventListener/MyEventListener.php .. include:: /_includes/EventsAttributeAdded.rst.txt API === .. include:: /CodeSnippets/Events/Core/Security/PolicyMutatedEvent.rst.txt