Reference: Feature Flags
Every flag is a boolean, off by default. Enable one in
settings./additional.:
$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['headless.storageProxy'] = true;
Important
Most flags are read when the DI container (Configuration/),
the middleware stack (Configuration/) and the
site configuration TCA are built, so their cached state wins until the
caches are rebuilt. headless. (File) and
headless. (Json, instantiated per request) are read
at runtime. Run bin/ after changing any flag.
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 Proxy (on the core
Generate, identifier
headless/) builds the URL from:
- the storage's
base, or itsUri basewhenPath pathisType relative:frontendhost +Base frontendpath + storage path, e.g.Api Proxy https://;www. example. com/ api/ fileadmin/… - for storages with neither:
frontend+ file identifier.File Api
A URL another listener already set is left alone. The flag also adds the
frontend and frontend fields to the site configuration
module, and aliases
\Friends
over the core
\TYPO3\, 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/ middleware. On a
POST, PUT or DELETE request whose body carries response
(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&...
Set response 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
\Friends over the
core
\TYPO3\. The factory returns
\Friends (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
Headless 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 Cookie middleware to the frontend and backend
stacks (before authentication) and a cookie field to the site
configuration. The middleware picks the site whose base (or base variant)
host matches the request host and sets its cookie for the request;
without a match the global cookie settings apply. See
Multi-Site & URL Configuration.
headless.assetsCacheBusting
Appends ?<mtime> (the file's modification_, else tstamp) to the
url/public of every file rendered by File, except YouTube
and Vimeo media. Per processor, the same is available with
processing.
headless.prettyPrint
Adds JSON_ to every Json output. For debugging only.
Availability by version
Removed in 5.x: headless. (the redirect middlewares are
always active), headless. (module discontinued) and
headless. (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 |