1 | <?php |
||
5 | use Spatie\Csp\Directive; |
||
6 | |||
7 | class Basic extends Profile |
||
8 | { |
||
9 | public function registerDirectives() |
||
10 | { |
||
11 | $this |
||
12 | ->addDirective(Directive::CONNECT, "'self'") |
||
13 | ->addDirective(Directive::DEFAULT, "'self'") |
||
14 | ->addDirective(Directive::FORM, "'self'") |
||
15 | ->addDirective(Directive::IMG, "'self'") |
||
16 | ->addDirective(Directive::MEDIA, "'self'") |
||
17 | ->addDirective(Directive::SCRIPT, "'self'") |
||
18 | ->addDirective(Directive::STYLE, "'self'"); |
||
19 | } |
||
20 | } |