\App\Http\MiddlewareSecurityHeadersMiddleware

安全响应头

职责:全站统一追加无副作用的安全头;CSP 刻意不在此强制(生产内联样式/ 第三方资源策略需按实际部署评估,避免误伤页面),留待部署阶段单独决策。

Summary

Methods
Properties
Constants
handle()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

handle()

handle(\Illuminate\Http\Request  $request, \Closure  $next) : \Symfony\Component\HttpFoundation\Response

处理响应:先放行,再统一追加安全头(含按配置启用的 HSTS)。

Parameters

\Illuminate\Http\Request $request
\Closure $next

Returns

\Symfony\Component\HttpFoundation\Response —