phpDocumentor

SecurityHeadersMiddleware implements MiddlewareInterface

Class SecurityHeadersMiddleware

Interfaces, Classes and Traits

MiddlewareInterface

Table of Contents

$finder  : NamespaceConfigurationFinder
__construct()  : mixed
SecurityHeadersMiddleware constructor.
process()  : ResponseInterface
Add "X-Frame-Options" header if content type is html.
isConfigEnabled()  : bool
Checks if given configuration key represents an enabled configuration.

Properties

Methods

process()

Add "X-Frame-Options" header if content type is html.

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Tags
inheritDoc
Return values
ResponseInterface

isConfigEnabled()

Checks if given configuration key represents an enabled configuration.

private isConfigEnabled(string $configKey) : bool
Parameters
$configKey : string
Return values
bool

Search results