InvestigateMutationsEvent

New in version 12.3

The PSR-14 event \TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent will be dispatched when the Content Security Policy backend module searches for potential resolutions to a specific CSP violation report. This way, third-party integrations that rely on external resources (for example, maps, file storage, content processing/translation, ...) can provide the necessary mutations.

Example

API

class InvestigateMutationsEvent
Fully qualified name
\TYPO3\CMS\Core\Security\ContentSecurityPolicy\Event\InvestigateMutationsEvent

Event that is dispatched when reports are handled in the CSP backend module to find potential mutations as a resolution.

public readonly policy
public readonly report
isPropagationStopped ( )
Returns
bool
stopPropagation ( )
getMutationSuggestions ( )
Returns
list<\MutationSuggestion>
setMutationSuggestions ( \TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationSuggestion ...$mutationSuggestions)

Overrides all mutation suggestions (use carefully).

param $mutationSuggestions

the mutationSuggestions

appendMutationSuggestions ( \TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationSuggestion ...$mutationSuggestions)
param $mutationSuggestions

the mutationSuggestions