Class ContentSecurityPolicy

Summary

Fully Qualified Name: CodeIgniter\HTTP\ContentSecurityPolicy

Description

Class ContentSecurityPolicy

Provides tools for working with the Content-Security-Policy header to help defeat XSS attacks.

Methods

Name Description Defined By
__construct() ContentSecurityPolicy constructor. ContentSecurityPolicy
addBaseURI() Adds a new base_uri value. Can be either a URI class or a simple string. ContentSecurityPolicy
addChildSrc() Adds a new valid endpoint for a form's action. Can be either a URI class or a simple string. ContentSecurityPolicy
addConnectSrc() Adds a new valid endpoint for a form's action. Can be either a URI class or a simple string. ContentSecurityPolicy
addFontSrc() Adds a new valid endpoint for a form's action. Can be either a URI class or a simple string. ContentSecurityPolicy
addFormAction() Adds a new valid endpoint for a form's action. Can be either a URI class or a simple string. ContentSecurityPolicy
addFrameAncestor() Adds a new resource that should allow embedding the resource using ,