class ServerAccessControl (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

ServerAccessControl allowOrigin(array $excepted)

Active Access-control-Allow-Origin

Parameters

array $excepted

Return Value

ServerAccessControl

Exceptions

ServerAccessControl allowMethods(array $excepted)

Active Access-control-Allow-Methods

Parameters

array $excepted

Return Value

ServerAccessControl

Exceptions

ServerAccessControlException

ServerAccessControl allowHeaders(array $excepted)

Active Access-control-Allow-Headers

Parameters

array $excepted

Return Value

ServerAccessControl

Exceptions

ServerAccessControlException

ServerAccessControl allowCredentials()

Active Access-control-Allow-Credentials

Return Value

ServerAccessControl

ServerAccessControl maxAge(string $excepted)

Active Access-control-Max-Age

Parameters

string $excepted

Return Value

ServerAccessControl

Exceptions

ServerAccessControlException

ServerAccessControl exposeHeaders(array $excepted)

Active Access-control-Expose-Headers

Parameters

array $excepted

Return Value

ServerAccessControl

Exceptions

ServerAccessControlException