You are here

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

Get the header name.

Return value

string The header name.

1 call to Csp::getHeaderName()
Csp::__toString in src/Csp.php
Create the string header representation.

File

src/Csp.php, line 371

Class

Csp
A CSP Header.

Namespace

Drupal\csp

Code

public function getHeaderName() {
  return 'Content-Security-Policy' . ($this->reportOnly ? '-Report-Only' : '');
}