Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Dec 1, 2023
1 parent 5e18486 commit 0301fd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Middleware/TrustCloudflareProxies.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class TrustCloudflareProxies
public function handle(Request $request, Closure $next)
{
$request->setTrustedProxies(
$this->getCachedProxies()
$this->getCachedProxies(),
Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_HOST | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO | Request::HEADER_X_FORWARDED_PREFIX | Request::HEADER_X_FORWARDED_AWS_ELB
);

if (! app()->isLocal() && ! $request->secure()) {
Expand Down

0 comments on commit 0301fd8

Please sign in to comment.