ApiAllowed
in package
implements
MiddlewareInterface
Validates that remote API access is allowed for the remote IP.
Returns HTTP 403 if panel.ini defines a list of IP addresses that can access the API and current client IP is not in that list. Returns HTTP 403 if IP Access Restriction Management does not allow current client IP to access Plesk.
Tags
Interfaces, Classes and Traits
- MiddlewareInterface
Table of Contents
- __construct() : mixed
- process() : ResponseInterface
Methods
__construct()
public
__construct(ResponseFactoryInterface $factory) : mixed
Parameters
- $factory : ResponseFactoryInterface
Return values
mixed —process()
public
process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $handler : RequestHandlerInterface