-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathSettings.php
51 lines (45 loc) · 983 Bytes
/
Settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
namespace born05\contentsecuritypolicy\models;
use craft\base\Model;
class Settings extends Model
{
public $enabled = true;
public $reportOnly = false;
public $baseUri = [
"'none'",
];
public $defaultSrc = [];
public $scriptSrc = [
"'self'",
];
public $styleSrc = [
"'self'",
];
public $imgSrc = [
"'self'",
];
public $connectSrc = [];
public $fontSrc = [];
public $objectSrc = [];
public $mediaSrc = [];
public $frameSrc = [];
public $sandbox = [];
public $reportUri = [];
public $childSrc = [];
public $formAction = [];
public $frameAncestors = [];
public $pluginTypes = [];
public $reportTo = [];
public $workerSrc = [];
public $manifestSrc = [];
public $navigateTo = [];
/**
* @inheritdoc
*/
public function defineRules(): array
{
return [
[['enabled'], 'boolean'],
];
}
}