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

Note

Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.

API

class 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.

property policy
property report
isPropagationStopped()
Return type

bool

stopPropagation()
getMutationSuggestions()
Return type

array

Returns

list<MutationSuggestion>

setMutationSuggestions(TYPO3\\CMS\\Core\\Security\\ContentSecurityPolicy\\MutationSuggestion $mutationSuggestions)

Overrides all mutation suggestions (use carefully).

Parameters
  • $mutationSuggestions (TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationSuggestion) -- the mutationSuggestions

appendMutationSuggestions(TYPO3\\CMS\\Core\\Security\\ContentSecurityPolicy\\MutationSuggestion $mutationSuggestions)
Parameters
  • $mutationSuggestions (TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationSuggestion) -- the mutationSuggestions