#107719Missing CSP nonce value on uncached pages with indexed_search
Description
Description:
When a page contains an indexed_search plugin (indexedsearch_pi2),
the first visit after flushing all caches does not have any nonce-values in the CSP header.
Later calls do have the proper csp headers.
The Problem occurs since the typo3 upgrade to 13.4.19. If you go back to 13.4.18, the problem does not occur.
Reproduction steps:
- Have an TYPO3 13.4.19 and typo3/cms-indexed-search installed
- Enable CSP (inheritDefault: true is enough)
- add JS to your DefaultLayout so nonce-header will be added
<f:asset.script identifier="hello" useNonce="true">
console.log('hello');
</f:asset.script>
- View page, csp-header with nonce is added
- Add indexed_search plugin indexedsearch_pi2 on page
- Clear cache
- view page => nonce is not added and therefor CSP error occurs