We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c104891 commit 5639581Copy full SHA for 5639581
app/Http/Kernel.php
@@ -14,6 +14,7 @@ class Kernel extends HttpKernel
14
* @var array
15
*/
16
protected $middleware = [
17
+ // \App\Http\Middleware\TrustHosts::class,
18
\App\Http\Middleware\TrustProxies::class,
19
\Fruitcake\Cors\HandleCors::class,
20
\App\Http\Middleware\CheckForMaintenanceMode::class,
app/Http/Middleware/TrustHosts.php
@@ -0,0 +1,20 @@
1
+<?php
2
+
3
+namespace App\Http\Middleware;
4
5
+use Illuminate\Http\Middleware\TrustHosts as Middleware;
6
7
+class TrustHosts extends Middleware
8
+{
9
+ /**
10
+ * Get the host patterns that should be trusted.
11
+ *
12
+ * @return array
13
+ */
+ public function hosts()
+ {
+ return [
+ $this->allSubdomainsOfApplicationUrl(),
+ ];
+ }
+}
0 commit comments