src/CorsService.php
protected function checkAccessControlRequestHeaders(array $accessControlRequestHeaders)
    {
        // Make sure all array elements are strings and not blank
        foreach ($accessControlRequestHeaders as $h) {
            if (!is_string($h) || $h === '') {
                return false;
            }
        }

        return true;
    }
protected function checkAccessControlRequestHeaders(array $accessControlRequestHeaders)
    {
        // Make sure all array elements are strings and not blank
        foreach ($accessControlRequestHeaders as $h) {
            if (!is_string($h) || $h === '') {
                return false;
            }
        }

        return true;
    }
protected function checkAccessControlRequestHeaders ( array $ accessControlRequestHeaders ) { // Make sure all array elements are strings and not blank foreach ( $ accessControlRequestHeaders as $ h ) { if ( ! is_string ( $ h ) || $ h === '' ) { return false ; } } return true ; }
Check if Access-Control-Request-Headers is valid
Section 5.9

@param array $accessControlRequestHeaders
@return bool
Check if Access - Control - Request - Headers is valid Section 5 . 9