Skip to content

hpkpSubdomains

Aidan Woods edited this page Jul 16, 2017 · 2 revisions

Description

void hpkpSubdomains (
    [ mixed $mode = true 
    [, mixed $reportOnly = null ] ] 
)

Add or remove the includeSubDomains flag from the HPKP policy (note this can be done with the ->hpkp function too).

Parameters

mode

Loosely casted to a boolean, true adds the includeSubDomains flag, false removes it.

reportOnly

Apply this setting to the report-only version of the HPKP policy header

Clone this wiki locally