CoolFace
Apppublic

kenken999/php

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
TrustProxies.php29 linesDownload Raw Back to Middleware
1<?php2 3namespace App\Http\Middleware;4 5use Illuminate\Http\Middleware\TrustProxies as Middleware;6use Illuminate\Http\Request;7 8class TrustProxies extends Middleware9{10    /**11     * The trusted proxies for this application.12     *13     * @var array|string|null14     */15    protected $proxies;16 17    /**18     * The headers that should be used to detect proxies.19     *20     * @var int21     */22    protected $headers =23        Request::HEADER_X_FORWARDED_FOR |24        Request::HEADER_X_FORWARDED_HOST |25        Request::HEADER_X_FORWARDED_PORT |26        Request::HEADER_X_FORWARDED_PROTO |27        Request::HEADER_X_FORWARDED_AWS_ELB;28}29