예제 #1
0
 public function getIsSecureConnection()
 {
     $headers = apache_request_headers();
     if (!$this->useReverseProxyHeaders || !isset($headers['X-Forwarded-Proto'])) {
         return parent::getIsSecureConnection();
     }
     return $headers['X-Forwarded-Proto'] == 'https';
 }