AccessControlAllowOrigin
abstract class AccessControlAllowOrigin implements MiddlewareInterface
Access control allow origin middleware.
Properties
protected bool | $allowAll | Allow all domains? | |
protected array | $allowedDomains | Allowed domains. |
Methods
bool
isDomainAllowed(string $domain)
Returns TRUE if the domain is allowed and FALSE if not.
Details
at line 41
protected string|null
getOrigin(Request $request)
Returns the request origin.
at line 52
protected bool
isDomainAllowed(string $domain)
Returns TRUE if the domain is allowed and FALSE if not.