Skip to content

Commit

Permalink
comment trust hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 10, 2020
1 parent d80ff4d commit b7cde8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Kernel extends HttpKernel
* @var array
*/
protected $middleware = [
\App\Http\Middleware\TrustHosts::class,
// \App\Http\Middleware\TrustHosts::class,
\App\Http\Middleware\TrustProxies::class,
\Fruitcake\Cors\HandleCors::class,
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
Expand Down

3 comments on commit b7cde8b

@suyar
Copy link
Contributor

@suyar suyar commented on b7cde8b Dec 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember uncommented before 5477.
Why disable TrustHosts middleware?

@paras-malhotra
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@suyar read the same thread towards the end

@suyar
Copy link
Contributor

@suyar suyar commented on b7cde8b Dec 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@suyar read the same thread towards the end

Sorry, I didn't pay attention.

Please sign in to comment.