public function setAccessControlAllowHeaders($headers)
    {
        if (is_array($headers)) {
            $headers = implode(', ', $headers);
        }

        $this->setHeader('Access-Control-Allow-Headers', (string) $headers);

        return $this;
    }
public function setAccessControlAllowHeaders($headers)
    {
        if (is_array($headers)) {
            $headers = implode(', ', $headers);
        }

        $this->setHeader('Access-Control-Allow-Headers', (string) $headers);

        return $this;
    }
public function setAccessControlAllowHeaders ( $ headers ) { if ( is_array ( $ headers ) ) { $ headers = implode ( ', ' , $ headers ) ; } $ this -> setHeader ( 'Access-Control-Allow-Headers' , ( string ) $ headers ) ; return $ this ; }
Set "Access-Control-Allow-Headers" header line.

@param string|string[] $headers

@author Seven Du <shiweidu@outlook.com>
Set Access - Control - Allow - Headers header line .