PHP Classes

File: server/app/Http/Middleware/TrustProxies.php

Recommend this page to a friend!
  Classes of mohammad anzawi   PHP Wallet API and Application   server/app/Http/Middleware/TrustProxies.php   Download  
File: server/app/Http/Middleware/TrustProxies.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Wallet API and Application
Application to manage a wallet by calling an API
Author: By
Last change:
Date: 2 years ago
Size: 636 bytes
 

Contents

Class file image Download
<?php

namespace App\Http\Middleware;

use
Illuminate\Http\Middleware\TrustProxies as Middleware;
use
Illuminate\Http\Request;

class
TrustProxies extends Middleware
{
   
/**
     * The trusted proxies for this application.
     *
     * @var array|string|null
     */
   
protected $proxies;

   
/**
     * The headers that should be used to detect proxies.
     *
     * @var int
     */
   
protected $headers =
       
Request::HEADER_X_FORWARDED_FOR |
       
Request::HEADER_X_FORWARDED_HOST |
       
Request::HEADER_X_FORWARDED_PORT |
       
Request::HEADER_X_FORWARDED_PROTO |
       
Request::HEADER_X_FORWARDED_AWS_ELB;
}