aboutsummaryrefslogtreecommitdiff
path: root/app/Http/Middleware/TrustHosts.php
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@fastmailteam.com>2022-08-02 11:30:56 -0400
committerCalvin Morrison <calvin@fastmailteam.com>2022-08-02 11:30:56 -0400
commit2466d29fe2319c1057cca7cf1e1977451088276e (patch)
tree23a9ada5dec1f8c8e106be100d3a0d75fcc0125e /app/Http/Middleware/TrustHosts.php
initial commit of laravel
Diffstat (limited to 'app/Http/Middleware/TrustHosts.php')
-rw-r--r--app/Http/Middleware/TrustHosts.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/Http/Middleware/TrustHosts.php b/app/Http/Middleware/TrustHosts.php
new file mode 100644
index 0000000..7186414
--- /dev/null
+++ b/app/Http/Middleware/TrustHosts.php
@@ -0,0 +1,20 @@
+<?php
+
+namespace App\Http\Middleware;
+
+use Illuminate\Http\Middleware\TrustHosts as Middleware;
+
+class TrustHosts extends Middleware
+{
+ /**
+ * Get the host patterns that should be trusted.
+ *
+ * @return array<int, string|null>
+ */
+ public function hosts()
+ {
+ return [
+ $this->allSubdomainsOfApplicationUrl(),
+ ];
+ }
+}