CSP: Renamed CSS CSP option

This commit is contained in:
Dan Brown
2026-05-26 12:50:19 +01:00
parent 2c49502345
commit d7ba0dc430
5 changed files with 10 additions and 10 deletions

View File

@@ -153,7 +153,7 @@ class SecurityHeaderTest extends TestCase
public function test_style_src_csp_header_set_to_permissive_defaults_when_not_configured()
{
config()->set('app.css_sources', null);
config()->set('app.style_sources', null);
$resp = $this->get('/');
$header = $this->getCspHeader($resp, 'style-src');
@@ -162,7 +162,7 @@ class SecurityHeaderTest extends TestCase
public function test_style_src_csp_header_can_be_overridden_by_config()
{
config()->set('app.css_sources', 'https://fonts.example.com');
config()->set('app.style_sources', 'https://fonts.example.com');
$resp = $this->get('/');
$header = $this->getCspHeader($resp, 'style-src');
@@ -172,7 +172,7 @@ class SecurityHeaderTest extends TestCase
public function test_style_src_csp_header_unsafe_inline_value_will_be_auto_quoted()
{
config()->set('app.css_sources', 'unsafe-inline https://css.example.com');
config()->set('app.style_sources', 'unsafe-inline https://css.example.com');
$resp = $this->get('/');
$header = $this->getCspHeader($resp, 'style-src');
@@ -182,7 +182,7 @@ class SecurityHeaderTest extends TestCase
public function test_style_src_can_be_blank_to_set_no_additions()
{
config()->set('app.css_sources', '');
config()->set('app.style_sources', '');
$resp = $this->get('/');
$header = $this->getCspHeader($resp, 'style-src');