You are here

public function Csp::reportOnly in Content-Security-Policy 8

Set the policy to report-only.

Parameters

bool $value: The report-only status.

File

src/Csp.php, line 222

Class

Csp
A CSP Header.

Namespace

Drupal\csp

Code

public function reportOnly($value = TRUE) {
  $this->reportOnly = $value;
}