class AccessControl (View source)

Methods

__construct(Response $response)

AccessControl constructor.

allowOrigin(array $excepted)

Active Access-control-Allow-Origin

allowMethods(array $excepted)

Active Access-control-Allow-Methods

allowHeaders(array $excepted)

Active Access-control-Allow-Headers

allowCredentials()

Active Access-control-Allow-Credentials

maxAge(string $excepted)

Active Access-control-Max-Age

exposeHeaders(array $excepted)

Active Access-control-Expose-Headers

Details

__construct(Response $response)

AccessControl constructor.

Parameters

Response $response

AccessControl allowOrigin(array $excepted)

Active Access-control-Allow-Origin

Parameters

array $excepted [optional]

Return Value

AccessControl

Exceptions

AccessControl allowMethods(array $excepted)

Active Access-control-Allow-Methods

Parameters

array $excepted

[optional] $excepted

Return Value

AccessControl

Exceptions

AccessControlException

AccessControl allowHeaders(array $excepted)

Active Access-control-Allow-Headers

Parameters

array $excepted

[optional] $excepted

Return Value

AccessControl

Exceptions

AccessControlException

AccessControl allowCredentials()

Active Access-control-Allow-Credentials

Return Value

AccessControl

AccessControl maxAge(string $excepted)

Active Access-control-Max-Age

Parameters

string $excepted

[optional] $excepted

Return Value

AccessControl

Exceptions

AccessControlException

AccessControl exposeHeaders(array $excepted)

Active Access-control-Expose-Headers

Parameters

array $excepted

[optional] $excepted

Return Value

AccessControl

Exceptions

AccessControlException