Library/Bullhorn/FastRest/Api/Controllers/Base.php
public function optionsAction() {
        $this->response->setHeader('Access-Control-Allow-Methods', 'POST, GET, PUT, DELETE, OPTIONS');
        $allowedHeaders = array_merge(
            ['X-Requested-With', 'X-HTTP-Method-Override', 'Content-Type', 'Accept', 'Cache-Control'],
            $this->getExtraAllowedHeaders()
        );
        $this->response->setHeader('Access-Control-Allow-Headers', implode(', ', $allowedHeaders));
        $this->setStatusCode(200);
    }
public function optionsAction() {
        $this->response->setHeader('Access-Control-Allow-Methods', 'POST, GET, PUT, DELETE, OPTIONS');
        $allowedHeaders = array_merge(
            ['X-Requested-With', 'X-HTTP-Method-Override', 'Content-Type', 'Accept', 'Cache-Control'],
            $this->getExtraAllowedHeaders()
        );
        $this->response->setHeader('Access-Control-Allow-Headers', implode(', ', $allowedHeaders));
        $this->setStatusCode(200);
    }
public function optionsAction ( ) { $ this -> response -> setHeader ( 'Access-Control-Allow-Methods' , 'POST, GET, PUT, DELETE, OPTIONS' ) ; $ allowedHeaders = array_merge ( [ 'X-Requested-With' , 'X-HTTP-Method-Override' , 'Content-Type' , 'Accept' , 'Cache-Control' ] , $ this -> getExtraAllowedHeaders ( ) ) ; $ this -> response -> setHeader ( 'Access-Control-Allow-Headers' , implode ( ', ' , $ allowedHeaders ) ) ; $ this -> setStatusCode ( 200 ) ; }
Needed for CORs
@return void
Needed for CORs