Cors.php
system/HTTP/Cors.php
1 class
14 methods
class Cors
Cross-Origin Resource Sharing (CORS)
__construct
($config = null)
factory
(string $configName = 'default')
isPreflightRequest
(IncomingRequest $request)
handlePreflightRequest
(RequestInterface $request, ResponseInterface $response)
checkWildcard
(string $name, int $count)
checkWildcardAndCredentials
(string $name, string $header)
setAllowOrigin
(RequestInterface $request, ResponseInterface $response)
setAllowHeaders
(ResponseInterface $response)
setAllowMethods
(ResponseInterface $response)
setAllowMaxAge
(ResponseInterface $response)
setAllowCredentials
(ResponseInterface $response)
addResponseHeaders
(RequestInterface $request, ResponseInterface $response)
setExposeHeaders
(ResponseInterface $response)
hasResponseHeaders
(RequestInterface $request, ResponseInterface $response)