\ConfigContentSecurityPolicy

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.

Suggested reference for explanations: https://www.html5rocks.com/en/tutorials/security/content-security-policy/

Summary

Methods
Properties
Constants
__construct()
$registrars
$reportOnly
$reportURI
$upgradeInsecureRequests
$defaultSrc
$scriptSrc
$styleSrc
$imageSrc
$baseURI
$childSrc
$connectSrc
$fontSrc
$formAction
$frameAncestors
$mediaSrc
$objectSrc
$manifestSrc
$pluginTypes
$sandbox
No constants found
initEnvValue()
getEnvValue()
registerProperties()
$didDiscovery
$moduleConfig
N/A
No private methods found
No private properties found
N/A

Properties

$registrars

$registrars : array

An optional array of classes that will act as Registrars for rapidly setting config class properties.

Type

array

$reportOnly

$reportOnly : 

Type

$reportURI

$reportURI : 

Type

$upgradeInsecureRequests

$upgradeInsecureRequests : 

Type

$defaultSrc

$defaultSrc : 

Type

$scriptSrc

$scriptSrc : 

Type

$styleSrc

$styleSrc : 

Type

$imageSrc

$imageSrc : 

Type

$baseURI

$baseURI : 

Type

$childSrc

$childSrc : 

Type

$connectSrc

$connectSrc : 

Type

$fontSrc

$fontSrc : 

Type

$formAction

$formAction : 

Type

$frameAncestors

$frameAncestors : 

Type

$mediaSrc

$mediaSrc : 

Type

$objectSrc

$objectSrc : 

Type

$manifestSrc

$manifestSrc : 

Type

$pluginTypes

$pluginTypes : 

Type

$sandbox

$sandbox : 

Type

$didDiscovery

$didDiscovery : boolean

Has module discovery happened yet?

Type

boolean

$moduleConfig

$moduleConfig : \CodeIgniter\Config\type

The modules configuration.

Type

\CodeIgniter\Config\type

Methods

__construct()

__construct() 

Will attempt to get environment variables with names that match the properties of the child class.

The "shortPrefix" is the lowercase-only config class name.

initEnvValue()

initEnvValue(  $property, string  $name, string  $prefix, string  $shortPrefix) : mixed

Initialization an environment-specific configuration setting

Parameters

$property
string $name
string $prefix
string $shortPrefix

Returns

mixed

getEnvValue()

getEnvValue(string  $property, string  $prefix, string  $shortPrefix) : mixed

Retrieve an environment-specific configuration setting

Parameters

string $property
string $prefix
string $shortPrefix

Returns

mixed

registerProperties()

registerProperties() 

Provides external libraries a simple way to register one or more options into a config file.

Throws

\ReflectionException