s2b / vite-asset-collector

Bundle your TYPO3 frontend assets with Vite
GNU General Public License v2.0
41 stars 15 forks source link

[TASK] Add nonce metatag to TYPO3 backend as well #88

Closed s2b closed 4 weeks ago

s2b commented 4 weeks ago

This adds the special nonce metatag to the TYPO3 backend that vite uses to inject its assets CSP-friendly when the dev server is used. Naturally, this is a security-relevant change since it fiddles with the security policies in the TYPO3 backend. However, since this is really only used if the dev server is activated in the extension configuration, this is not critical for production systems.

On the flipside it enables the usage of the Vite dev server for some backend use cases, for example in backend module templates or in preview templates for content elements.

Resolves: #82