class ServerAccessControl (View source)

Methods

__construct(Response $response)

AccessControl constructor.

AccessControl
allowOrigin(array $excepted)

Active Access-control-Allow-Origin

AccessControl
allowMethods(array $excepted)

Active Access-control-Allow-Methods

AccessControl
allowHeaders(array $excepted)

Active Access-control-Allow-Headers

AccessControl
allowCredentials()

Active Access-control-Allow-Credentials

AccessControl
maxAge(string $excepted)

Active Access-control-Max-Age

AccessControl
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

Return Value

AccessControl

Exceptions

ServerAccessControlException

AccessControl allowHeaders(array $excepted)

Active Access-control-Allow-Headers

Parameters

array $excepted

Return Value

AccessControl

Exceptions

ServerAccessControlException

AccessControl allowCredentials()

Active Access-control-Allow-Credentials

Return Value

AccessControl

AccessControl maxAge(string $excepted)

Active Access-control-Max-Age

Parameters

string $excepted

Return Value

AccessControl

Exceptions

ServerAccessControlException

AccessControl exposeHeaders(array $excepted)

Active Access-control-Expose-Headers

Parameters

array $excepted

Return Value

AccessControl

Exceptions

ServerAccessControlException