Skip to content

Commit f911484

Browse files
Merge pull request #19791 from liviuconcioiu/permissions-policy
Fix unrecognized feature: 'oversized-images'
2 parents ff35c79 + 4bbe89a commit f911484

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ public function getHttpHeaders(): array
371371
*
372372
* @see https://developer.mozilla.org/docs/Web/HTTP/Headers/Permissions-Policy
373373
*/
374-
$headers['Permissions-Policy'] = 'fullscreen=(self), oversized-images=(self), interest-cohort=()';
374+
$headers['Permissions-Policy'] = 'fullscreen=(self), interest-cohort=()';
375375

376376
$headers = array_merge($headers, Core::getNoCacheHeaders());
377377

tests/unit/HeaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function testGetHttpHeaders(
192192
'X-Content-Type-Options' => 'nosniff',
193193
'X-Permitted-Cross-Domain-Policies' => 'none',
194194
'X-Robots-Tag' => 'noindex, nofollow',
195-
'Permissions-Policy' => 'fullscreen=(self), oversized-images=(self), interest-cohort=()',
195+
'Permissions-Policy' => 'fullscreen=(self), interest-cohort=()',
196196
'Expires' => $date,
197197
'Cache-Control' => 'no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0',
198198
'Pragma' => 'no-cache',

0 commit comments

Comments
 (0)