From aa5b0d656ca5b34d248e5e5aaff1cba1433d738c Mon Sep 17 00:00:00 2001 From: krls2020 Date: Thu, 3 Oct 2024 11:00:56 +0200 Subject: [PATCH] update --- config/trustedproxy.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 config/trustedproxy.php diff --git a/config/trustedproxy.php b/config/trustedproxy.php new file mode 100644 index 0000000..37d1593 --- /dev/null +++ b/config/trustedproxy.php @@ -0,0 +1,20 @@ + '*', + + /* + * Which headers to use to detect proxy related data (For, Host, Proto, Port) + * + * Options include: + * + * - All headers (see below) - Trust all x-forwarded-* headers + * - Illuminate\Http\Request::HEADER_FORWARDED - Use the FORWARDED header to establish trust + * - Illuminate\Http\Request::HEADER_X_FORWARDED_AWS_ELB - If you are using AWS Elastic Load Balancer + * + * @link https://symfony.com/doc/current/deployment/proxies.html + */ + 'headers' => Illuminate\Http\Request::HEADER_X_FORWARDED_FOR | Illuminate\Http\Request::HEADER_X_FORWARDED_HOST | Illuminate\Http\Request::HEADER_X_FORWARDED_PORT | Illuminate\Http\Request::HEADER_X_FORWARDED_PROTO | Illuminate\Http\Request::HEADER_X_FORWARDED_AWS_ELB, + +];