$cors->toArray()
Converts the CORS configuration to an array of headers
$cors->toArray(bool $preflight = false): array
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $preflight | bool |
false
|
Whether this is a preflight request |
Return type
array
This method modifies the existing $cors object it is applied to and returns it again.