Skip to content

Commit

Permalink
Fix broken unit test. Expect img-src for Youtube
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispenny authored and adrhumphreys committed Sep 22, 2021
1 parent 8ed6369 commit d705f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/PolicyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function configure()
[$request, $response] = $this->getRequestResponse();
$policy->applyTo($response);
$this->assertEquals(
'script-src www.youtube.com s.ytimg.com player.vimeo.com;frame-src *.youtube.com player.vimeo.com;child-src player.vimeo.com',
'img-src *.ytimg.com;script-src www.youtube.com s.ytimg.com player.vimeo.com;frame-src *.youtube.com player.vimeo.com;child-src player.vimeo.com',
$response->getHeader('content-security-policy')
);
}
Expand Down

0 comments on commit d705f32

Please sign in to comment.