Content Security Policy
The placeholder (LQIP)
The placeholder is not rendered as an inline style="" attribute
(those cannot carry a CSP nonce). The <img> only gets a CSS class; the
actual rule is registered through TYPO3's Asset and emitted as a
nonced <style> element. Identical placeholders are deduplicated to a
single rule.
Depending on the chosen lqip option:
thumbhash(default)- The blurred preview is a
data:background image, so allowimg-(TYPO3's default frontend CSP already does).src data: dominant-color - A plain background color. Needs nothing beyond the nonced/hashed
<style> none- No placeholder, no extra directive.
The sizes="auto" polyfill
Whenever a processed image renders, Imaginator registers the
sizes="auto" polyfill through the
Asset. It is a same-origin script file, nonce-tagged so a strict
policy accepts it (TYPO3 v14 via csp, v13 via use).
So a strict CSP needs to allow the nonced script under script-, TYPO3's
default frontend CSP nonces scripts automatically, so nothing extra is required.
If you maintain a custom policy, make sure script- permits same-origin
nonced scripts (e.g. script-).
Pages without any <i: register no script at all.