final | |
|---|---|
readonly | |
implements |
MiddlewareInterface |
Grants browser clients cross-origin access to the MCP endpoint additively, leaving rejection to the DNS-rebinding gate.
| Methods | ||
|---|---|---|
public
|
__construct(list<non-empty-string> $allowedOrigins, ResponseFactoryInterface $responseFactory, int $maxAge = 600)
|
# |
public
|
process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
|
# |