public function getAllowheaders()
    {
        $requestHeaders = $this->request->getAccessControlRequestHeaders();
        if (in_array('*', $this->allowedHeaders) && $requestHeaders) {
            return $requestHeaders;
        }

        return $this->allowedHeaders;
    }
public function getAllowheaders()
    {
        $requestHeaders = $this->request->getAccessControlRequestHeaders();
        if (in_array('*', $this->allowedHeaders) && $requestHeaders) {
            return $requestHeaders;
        }

        return $this->allowedHeaders;
    }
public function getAllowheaders ( ) { $ requestHeaders = $ this -> request -> getAccessControlRequestHeaders ( ) ; if ( in_array ( '*' , $ this -> allowedHeaders ) && $ requestHeaders ) { return $ requestHeaders ; } return $ this -> allowedHeaders ; }
Get allow-headers.

@return string|array

@author Seven Du <shiweidu@outlook.com>
Get allow - headers .