Heratio Framework API Reference

CspMiddleware
in package

Content Security Policy middleware.

Replaces QubitCSP. Generates a per-request nonce and sets the CSP response header. The nonce is stored in ConfigService for use in templates via csp_nonce_attr().

Table of Contents

Methods

handle()  : mixed

Methods

handle()

public handle(Request $request, Closure $next) : mixed
Parameters
$request : Request
$next : Closure

        
On this page

Search results