Skip to content

Commit

Permalink
tests: add frame-ancestors none test case
Browse files Browse the repository at this point in the history
  • Loading branch information
bepsvpt committed Dec 16, 2024
1 parent e128f04 commit ba986f9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Builders/ContentSecurityPolicyBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,17 @@ public function testSeldomUsedDirectives()
'report-to csp-report',
(new ContentSecurityPolicyBuilder($config))->get()
);

$config = [
'frame-ancestors' => [
'none' => true,
],
];

$this->assertSame(
"frame-ancestors 'none'",
(new ContentSecurityPolicyBuilder($config))->get()
);
}

public function testSchemeAutoAppendColon()
Expand Down

0 comments on commit ba986f9

Please sign in to comment.