#111096Multi-file download in file list is blocked by backend CSP (frame-src) in Safari and Firefox
Description
Description
Downloading multiple files or folders from the file list (Media > Filelist, select items, click “Download”) does not work in Safari and Firefox. A “preparing download” notification and then a success notification are shown, but no file is downloaded.
Single file downloads work. In Chrome, multi-download works as well.
Cause
The multi-download posts the selection to the file_download route and receives a ZIP. file-list.js turns the response into a Blob, creates an object URL and triggers the download via a temporary <a download> element (invokeDownload()).
Safari and Firefox check this blob URL navigation against the frame-src directive of the backend CSP. The default backend policy (EXT:backend/Configuration/ContentSecurityPolicies.php) only extends frame-src with 'self', *.youtube-nocookie.com, *.youtube.com and *.vimeo.com. The blob: scheme is not allowed. Chrome does not apply frame-src here.
Console output
Safari:
Refused to load blob:https://example.org/<uuid> because it does not appear in the frame-src directive of the Content Security Policy.
Firefox:
Content-Security-Policy: The page's settings blocked the loading of a resource (frame-src) at blob:https://example.org/<uuid> because it violates the following directive: "frame-src 'self' https://*.youtube-nocookie.com https://*.youtube.com https://*.vimeo.com"
Steps to reproduce
- Log in to the backend with TYPO3 14.3.9 (default CSP, no custom mutations).
- Open Media > Filelist and select at least two files.
- Click “Download” in the multi-record selection.
- Open the browser console in Safari or Firefox. The CSP error appears and no download starts.
Expected / actual result
- Expected: A ZIP file is downloaded.
- Actual: No download, CSP error in the console.
Server side is not affected
FileDownloadController returns a valid ZIP (HTTP 200, application/zip) for the same selection. Only the client-side download is affected.
Workaround
Extend the backend CSP in a custom extension, Configuration/ContentSecurityPolicies.php:
<?php
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Directive;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Mutation;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationCollection;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\MutationMode;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\Scope;
use TYPO3\CMS\Core\Security\ContentSecurityPolicy\SourceScheme;
use TYPO3\CMS\Core\Type\Map;
return Map::fromEntries([
Scope::backend(),
new MutationCollection(
new Mutation(MutationMode::Extend, Directive::FrameSrc, SourceScheme::blob),
),
]);
Possible fix
Add blob: to frame-src in the default backend CSP, or avoid the blob navigation (for example by downloading through a regular response instead of a client-side blob).
Environment
- TYPO3 14.3.9, Composer mode
- Safari <version>, Firefox <version>, macOS</version></version>
- Works in Chrome
Reviews 1
Related issues 1
History 24
-
Garvin Hicking commented and changed category status
NewAccepted <span data-processor="relativetime" data-value="2026-10-16T06:19:35+00:00" > 10/16/26, 06:19 </span> -
Gerrit Code Review pushed patch set 1 for main to change 97175 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2026-10-27T11:27:17+00:00" > 10/27/26, 11:27 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97175 <span data-processor="relativetime" data-value="2026-10-27T12:10:34+00:00" > 10/27/26, 12:10 </span>
-
Benni Mack changed Related to #106598 <span data-processor="relativetime" data-value="2026-11-18T21:39:20+00:00" > 11/18/26, 21:39 </span>
Confirmed also for v15/main.