Skip to content
PHP Ecosystem
Explore

DebugResponseHeaders

API reference › Debug › DebugResponseHeaders

final classyii\debug\DebugResponseHeaders
Sourcesrc/DebugResponseHeaders.php

Applies defense-in-depth headers to debugger responses without preventing the same-origin toolbar iframe.

MethodDescriptionDefined by
apply() staticSets the hardening headers and rewrites every Content-Security-Policy value on the response.DebugResponseHeaders
public static function apply(yii\web\Response $response): void

Sets the hardening headers and rewrites every Content-Security-Policy value on the response.

Parameters

ParameterTypeDescription
$responseyii\web\ResponseDebugger response to harden.