Skip to content

Commit 0a68b7d

Browse files
authored
[Security] add missing Clear-Site-Data directives
1 parent e0dbbd2 commit 0a68b7d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

reference/configuration/security.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ The ``Clear-Site-Data`` HTTP header clears browsing data (cookies, storage, cach
373373
associated with the requesting website. It allows web developers to have more
374374
control over the data stored by a client browser for their origins.
375375

376-
Allowed values are ``cache``, ``cookies``, ``storage`` and ``executionContexts``.
376+
Allowed values are ``cache``, ``cookies``, ``storage``, ``clientHints``, ``executionContexts``,
377+
``prefetchCache`` and ``prerenderCache``.
377378
It's also possible to use ``*`` as a wildcard for all directives:
378379

379380
.. configuration-block::
@@ -405,6 +406,9 @@ It's also possible to use ``*`` as a wildcard for all directives:
405406
->logout()
406407
->clearSiteData(['cookies', 'storage']);
407408
};
409+
.. versionadded:: 8.1
410+
The ``clientHints``, ``prefetchCache`` and ``prerenderCache`` options were
411+
introduced in Symfony 8.1.
408412

409413
invalidate_session
410414
..................

0 commit comments

Comments
 (0)