* - directory refactor * - readme.md update * Update readme.md Co-authored-by: Adrian Hopek <adrian.hopek@blumilk.pl> * Update readme.md Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * Update readme.md Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * Update readme.md Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * Update readme.md Co-authored-by: Adrian Hopek <adrian.hopek@blumilk.pl> Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>
		
			
				
	
	
		
			21 lines
		
	
	
		
			496 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			496 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| declare(strict_types=1);
 | |
| 
 | |
| namespace Toby\Infrastructure\Http\Middleware;
 | |
| 
 | |
| use Illuminate\Http\Middleware\TrustProxies as Middleware;
 | |
| use Symfony\Component\HttpFoundation\Request;
 | |
| 
 | |
| class TrustProxies extends Middleware
 | |
| {
 | |
|     protected $proxies;
 | |
| 
 | |
|     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;
 | |
| }
 |