SilverStripe CSP headers

SRIBuilder
in package
Uses Configurable

Table of Contents

Properties

$skip_domains  : array<string|int, mixed>
An array of javascript or css files to skip applying SRI to.
$sri  : ArrayList|array<string|int, SRI>
List of the SRI's

Methods

buildSRI()  : array<string|int, mixed>
shouldUpdateSRI()  : bool

Properties

$skip_domains

An array of javascript or css files to skip applying SRI to.

private static array<string|int, mixed> $skip_domains = []

Files only need to start with the configured value, e.g. if this array contains 'https://example.com' then all scripts from that site will be skipped.

$sri

List of the SRI's

private static ArrayList|array<string|int, SRI> $sri

Methods

buildSRI()

public buildSRI( $file, array<string|int, mixed> $htmlAttributes) : array<string|int, mixed>
Parameters
$file :
$htmlAttributes : array<string|int, mixed>
Tags
throws
ValidationException
throws
Exception
Return values
array<string|int, mixed>

shouldUpdateSRI()

private shouldUpdateSRI() : bool
Return values
bool

        
On this page

Search results