Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Http\Middleware;
  4.  
  5. use Illuminate\Http\Request;
  6. use Fideloper\Proxy\TrustProxies as Middleware;
  7.  
  8. class TrustProxies extends Middleware
  9. {
  10. /**
  11. * The trusted proxies for this application.
  12. *
  13. * @var array
  14. */
  15. protected $proxies;
  16.  
  17. /**
  18. * The headers that should be used to detect proxies.
  19. *
  20. * @var int
  21. */
  22. protected $headers = Request::HEADER_X_FORWARDED_ALL;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement