ContentSecurityPolicyManager

class OC\Security\CSP\ContentSecurityPolicyManager
Source:lib/private/Security/CSP/ContentSecurityPolicyManager.php#37
Implements:OCP\Security\IContentSecurityPolicyManager

Properties

Methods

public OC\Security\CSP\ContentSecurityPolicyManager::__construct($dispatcher)
Source:lib/private/Security/CSP/ContentSecurityPolicyManager.php#44
public OC\Security\CSP\ContentSecurityPolicyManager::addDefaultPolicy($policy)
Source:lib/private/Security/CSP/ContentSecurityPolicyManager.php#49
public OC\Security\CSP\ContentSecurityPolicyManager::getDefaultPolicy()
Get the configured default policy. This is not in the public namespace
as it is only supposed to be used by core itself.
Source:lib/private/Security/CSP/ContentSecurityPolicyManager.php#59
Returns:\OCP\AppFramework\Http\ContentSecurityPolicy
public OC\Security\CSP\ContentSecurityPolicyManager::mergePolicies($defaultPolicy, $originalPolicy)
Merges the first given policy with the second one
Source:

lib/private/Security/CSP/ContentSecurityPolicyManager.php#77

Parameters:
Returns:

\OCP\AppFramework\Http\ContentSecurityPolicy