Reference: Feature Flags 

Every flag is a boolean, off by default. Enable one in settings.php/additional.php:

$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['headless.storageProxy'] = true;
Copied!

Active in 5.x 

headless.storageProxy 

In headless frontend requests, rewrites the public URL of every file in a local, public storage — originals as well as processed files — to the frontend host. The ProxyResourcePublicUrlListener (on the core GeneratePublicUrlForResourceEvent, identifier headless/ProxyResourcePublicUrl) builds the URL from:

  • the storage's baseUri, or its basePath when pathType is relative: frontendBase host + frontendApiProxy path + storage path, e.g. https://www.example.com/api/fileadmin/…;
  • for storages with neither: frontendFileApi + file identifier.

A URL another listener already set is left alone. The flag also adds the frontendApiProxy and frontendFileApi fields to the site configuration module, and aliases \FriendsOfTYPO3\Headless\Resource\Service\HeadlessImageService over the core \TYPO3\CMS\Extbase\Service\ImageService , which strips the proxy prefix from image src values so proxied URLs still resolve to files. Setup and per-site examples: Storage proxy (asset routing).

headless.elementBodyResponse 

Adds the headless/cms-frontend/element-body-response middleware. On a POST, PUT or DELETE request whose body carries responseElementId (a content element uid), the response contains only that element instead of the whole page — clean plugin output for SPA form handling:

POST https://example.tld/path-to-form-plugin
Content-Type: application/x-www-form-urlencoded

responseElementId=#ELEMENT_ID#&tx_form_formframework[email]=email&...
Copied!

Set responseElementRecursive=1 to match an element nested inside another one. The middleware acts only when headless mode applies to the request; on a mixed-mode site the POST must carry the Accept header described in Mixed mode and the Accept header.

headless.overrideFluidTemplates 

Aliases \FriendsOfTYPO3\Headless\View\HeadlessViewFactory over the core \TYPO3\CMS\Core\View\ViewFactoryInterface . The factory returns \FriendsOfTYPO3\Headless\View\HeadlessPhpView (raw-PHP templates) only for views with format php in headless frontend requests — for Extbase plugins only when the plugin's TypoScript sets format = php. Whenever format php is requested but HeadlessPhpView does not apply (flag off, no request, backend context, headless mode not active, or an Extbase request without TypoScript format = php — e.g. a request-supplied format=php), the factory drops the format and the core Fluid factory renders the regular .html template; a .php file is never parsed by Fluid. Every other view is created by the core Fluid factory unchanged. Raw-PHP templates apply no output escaping; usage and safety rules: Raw-PHP templates for Extbase plugins.

headless.cookieDomainPerSite 

Adds the CookieDomainPerSite middleware to the frontend and backend stacks (before authentication) and a cookieDomain field to the site configuration. The middleware picks the site whose base (or base variant) host matches the request host and sets its cookieDomain for the request; without a match the global cookieDomain settings apply. See Multi-Site & URL Configuration.

headless.assetsCacheBusting 

Appends ?<mtime> (the file's modification_date, else tstamp) to the url/publicUrl of every file rendered by FileUtility, except YouTube and Vimeo media. Per processor, the same is available with processingConfiguration.cacheBusting = 1.

headless.prettyPrint 

Adds JSON_PRETTY_PRINT to every JsonEncoder output. For debugging only.

Availability by version 

Removed in 5.x: headless.redirectMiddlewares (the redirect middlewares are always active), headless.jsonViewModule (module discontinued) and headless.nextMajor (unused). See the upgrade guide.

Flag

2.x

3.x

4.x

5.x

FrontendBaseUrlInPagePreview

available

removed

removed

removed

headless.frontendUrls

>= 2.5

available

removed

removed

headless.storageProxy

>= 2.4

available

available

available

headless.redirectMiddlewares

>= 2.5

available

available

removed (middlewares always active)

headless.nextMajor

>= 2.2

currently not used

currently not used

removed

headless.elementBodyResponse

>= 2.6

available

available

available

headless.simplifiedLinkTarget

>= 2.6

removed

not available

not available

headless.jsonViewModule

not available

>= 3.0

>= 3.0

removed (module discontinued)

headless.workspaces

not available

>= 3.1

removed (auto-on with EXT:workspaces)

removed (works without a flag)

headless.pageTitleProviders

not available

not available

>= 4.2.3 <= 4.4

removed

headless.overrideFluidTemplates

not available

not available

available

available (reworked)

headless.cookieDomainPerSite

not available

not available

available

available

headless.assetsCacheBusting

not available

not available

available

available

headless.prettyPrint

not available

not available

available

available