Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
krls2020 committed Oct 3, 2024
1 parent c10de4f commit aa5b0d6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions config/trustedproxy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

return [

'proxies' => '*',

/*
* 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,

];

0 comments on commit aa5b0d6

Please sign in to comment.