When using a Content-Security-Policy header and MultiFile image preview option, it is necessary to add the following to the policy:
style-src-attr 'unsafe-hashes' 'sha256-4qkS2iZFPnww6DrxUWQysY+9VixGcprm/tNZ4Gxr/LQ='
It may be worth providing different options to style the preview images.
E.g. having an option to add additional classes to the class attribute and not adding the style attribute in the line:
'<img class="MultiFile-preview" style="'+ MultiFile.previewCss+'"/>'
When using a Content-Security-Policy header and MultiFile image preview option, it is necessary to add the following to the policy:
It may be worth providing different options to style the preview images.
E.g. having an option to add additional classes to the class attribute and not adding the style attribute in the line: