1 | <?php |
||
5 | abstract class Directive |
||
6 | { |
||
7 | const BASE = 'base-uri'; |
||
8 | const BLOCK_ALL_MIXED_CONTENT = 'block-all-mixed-content'; |
||
9 | const CHILD = 'child-src'; |
||
10 | const CONNECT = 'connect-src'; |
||
11 | const DEFAULT = 'default-src'; |
||
12 | const FONT = 'font-src'; |
||
13 | const FORM = 'form-action'; |
||
14 | const FRAME = 'frame-src'; |
||
15 | const FRAME_ANCESTORS = 'frame-ancestors'; |
||
16 | const IMG = 'img-src'; |
||
17 | const MANIFEST = 'manifest-src'; |
||
18 | const MEDIA = 'media-src'; |
||
19 | const OBJECT = 'object-src'; |
||
20 | const PLUGIN = 'plugin-types'; |
||
21 | const REPORT = 'report-uri'; |
||
22 | const SANDBOX = 'sandbox'; |
||
23 | const SCRIPT = 'script-src'; |
||
24 | const STYLE = 'style-src'; |
||
25 | const UPGRADE_INSECURE_REQUESTS = 'upgrade-insecure-requests'; |
||
26 | const WORKER = 'worker-src'; |
||
27 | |||
28 | public static function isValid(string $directive): bool |
||
34 | } |
||
35 |