Skip to content

Commit

Permalink
fix: missing clientHints handler for Clear-Site-Data header
Browse files Browse the repository at this point in the history
  • Loading branch information
bepsvpt committed Oct 13, 2024
1 parent 2a7ebd3 commit c1b0893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Builders/ClearSiteDataBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ final class ClearSiteDataBuilder extends Builder
*/
protected $whitelist = [
'cache' => true,
'clientHints' => true,
'cookies' => true,
'storage' => true,
'executionContexts' => true,
Expand Down
4 changes: 3 additions & 1 deletion tests/Builders/ClearSiteDataBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ public function testClearSiteData()
);

$config = [
'clientHints' => true,

'executionContexts' => true,
];

$this->assertSame(
'"executionContexts"',
'"clientHints", "executionContexts"',
(new ClearSiteDataBuilder($config))->get()
);
}
Expand Down

0 comments on commit c1b0893

Please sign in to comment.