DebugResponseHeaders
API reference › Debug › DebugResponseHeaders
Applies defense-in-depth headers to debugger responses without preventing the same-origin toolbar iframe.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
apply() static | Sets the hardening headers and rewrites every Content-Security-Policy value on the response. | DebugResponseHeaders |
Method details
Section titled “Method details”apply()
Section titled “apply() ”public static function apply(yii\web\Response $response): voidSets the hardening headers and rewrites every Content-Security-Policy value on the response.
Parameters
| Parameter | Type | Description |
|---|---|---|
$response | yii\ | Debugger response to harden. |