public function extractHeaders()
    {
        $headers = [];
        foreach (array_keys($this->cors) as $headerField) {
            $headerData = $this->request->getHeaderLine($headerField);
            if ($headerData !== null) {
                $headers[$headerField] = $headerData;
            }
        }

        return $headers;
    }
public function extractHeaders()
    {
        $headers = [];
        foreach (array_keys($this->cors) as $headerField) {
            $headerData = $this->request->getHeaderLine($headerField);
            if ($headerData !== null) {
                $headers[$headerField] = $headerData;
            }
        }

        return $headers;
    }
public function extractHeaders ( ) { $ headers = [ ] ; foreach ( array_keys ( $ this -> cors ) as $ headerField ) { $ headerData = $ this -> request -> getHeaderLine ( $ headerField ) ; if ( $ headerData !== null ) { $ headers [ $ headerField ] = $ headerData ; } } return $ headers ; }
Extract CORS headers from the request.
@return array CORS headers to handle
Extract CORS headers from the request .