forked from codeigniter4/CodeIgniter4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContentSecurityPolicy.php
More file actions
49 lines (31 loc) · 904 Bytes
/
Copy pathContentSecurityPolicy.php
File metadata and controls
49 lines (31 loc) · 904 Bytes
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
<?php namespace Config;
use CodeIgniter\Config\BaseConfig;
/**
* Class ContentSecurityPolicyConfig
*
* Stores the default settings for the ContentSecurityPolicy, if you
* choose to use it. The values here will be read in and set as defaults
* for the site. If needed, they can be overridden on a page-by-page basis.
*
* @package Config
*/
class ContentSecurityPolicy extends BaseConfig
{
public $reportOnly = false;
public $defaultSrc = 'none';
public $scriptSrc = 'self';
public $styleSrc = 'self';
public $imageSrc = 'self';
public $base_uri = null;
public $childSrc = null;
public $connectSrc = 'self';
public $fontSrc = null;
public $formAction = null;
public $frameAncestors = null;
public $mediaSrc = null;
public $objectSrc = null;
public $pluginTypes = null;
public $reportURI = null;
public $sandbox = false;
public $upgradeInsecureRequests = false;
}