| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function configure() |
||
| 10 | { |
||
| 11 | $this |
||
| 12 | ->addDirective(Directive::CONNECT, 'self') |
||
| 13 | ->addDirective(Directive::DEFAULT, 'self') |
||
| 14 | ->addDirective(Directive::FORM_ACTION, 'self') |
||
| 15 | ->addDirective(Directive::IMG, 'self') |
||
| 16 | ->addDirective(Directive::MEDIA, 'self') |
||
| 17 | ->addDirective(Directive::SCRIPT, 'self') |
||
| 18 | ->addDirective(Directive::STYLE, 'self') |
||
| 19 | ->addDirective(Directive::OBJECT, 'none') |
||
| 20 | ->addNonceForDirective(Directive::SCRIPT) |
||
| 21 | ->addNonceForDirective(Directive::STYLE); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |