Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Security] add missing Clear-Site-Data directives#62322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
xabbuh wants to merge1 commit intosymfony:6.4
base:6.4
Choose a base branch
Loading
fromxabbuh:pr-49306
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -261,7 +261,7 @@ private function addFirewallsSection(ArrayNodeDefinition $rootNode, array $facto
->beforeNormalization()->ifString()->then(fn ($v) => $v ? array_map('trim', explode(',', $v)) : [])->end()
->enumPrototype()
->values([
'*', 'cache', 'cookies', 'storage', 'executionContexts',
'*', 'cache', 'cookies', 'storage', 'clientHints', 'executionContexts', 'prefetchCache', 'prerenderCache',
])
->end()
->end()
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -463,7 +463,10 @@
<xsd:enumerationvalue="cache" />
<xsd:enumerationvalue="cookies" />
<xsd:enumerationvalue="storage" />
<xsd:enumerationvalue="clientHints" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

In browsers that support the "clientHints" data type, client hints are also cleared when the "cache", "cookies

<xsd:enumerationvalue="executionContexts" />
<xsd:enumerationvalue="prefetchCache" />
<xsd:enumerationvalue="prerenderCache" />
</xsd:restriction>
</xsd:simpleType>

Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,7 +27,7 @@ class ClearSiteDataLogoutListener implements EventSubscriberInterface

/**
* @param string[] $cookieValue The value for the Clear-Site-Data header.
* Can be '*' or a subset of 'cache', 'cookies', 'storage', 'executionContexts'.
* Can be '*' or a subset of 'cache', 'cookies', 'storage', 'clientHints', 'executionContexts', 'prefetchCache', 'prerenderCache'.
*/
public function __construct(private readonly array $cookieValue)
{
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -44,5 +44,6 @@ public static function provideClearSiteDataConfig(): iterable
{
yield [['*'], '"*"'];
yield [['cache', 'cookies', 'storage', 'executionContexts'], '"cache", "cookies", "storage", "executionContexts"'];
yield [['clientHints', 'executionContexts', 'prefetchCache', 'prerenderCache'], '"clientHints", "executionContexts", "prefetchCache", "prerenderCache"'];
}
}

[8]ページ先頭

©2009-2025 Movatter.jp