Skip to content

Commit

Permalink
Add trust for proxy prefixed back in
Browse files Browse the repository at this point in the history
Was not set explicitly before, but a bug in Laravel caused prefixes to
be trusted in our middlware anyway. (Fixed in v10.17.0).
This adds it back in explicitly so the header is properly used again.
  • Loading branch information
ssddanbrown committed Sep 29, 2023
1 parent 2ac4cc7 commit 6c6e829
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Middleware/TrustProxies.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ class TrustProxies extends Middleware
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;
}

0 comments on commit 6c6e829

Please sign in to comment.