about summary refs log tree commit diff
path: root/laravel/app/Http/Middleware/TrustProxies.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2018-12-26 09:52:37 -0500
committerZach DeCook <zachdecook@gmail.com>2018-12-26 09:52:37 -0500
commit77f1076c15fbb8bf826a58cb2d556801a82a81ee (patch)
tree2d8dd905708c9bafe397aed4dbb7d03a644b48cb /laravel/app/Http/Middleware/TrustProxies.php
parentd034708620b528d08bc8c4750439f84de484bc4a (diff)
downloadprosongsa-77f1076c15fbb8bf826a58cb2d556801a82a81ee.tar.gz
- Add laravel site directories
Diffstat (limited to 'laravel/app/Http/Middleware/TrustProxies.php')
-rw-r--r--laravel/app/Http/Middleware/TrustProxies.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/laravel/app/Http/Middleware/TrustProxies.php b/laravel/app/Http/Middleware/TrustProxies.php
new file mode 100644
index 0000000..7daf51f
--- /dev/null
+++ b/laravel/app/Http/Middleware/TrustProxies.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace App\Http\Middleware;
+
+use Illuminate\Http\Request;
+use Fideloper\Proxy\TrustProxies as Middleware;
+
+class TrustProxies extends Middleware
+{
+    /**
+     * The trusted proxies for this application.
+     *
+     * @var array
+     */
+    protected $proxies;
+
+    /**
+     * The headers that should be used to detect proxies.
+     *
+     * @var int
+     */
+    protected $headers = Request::HEADER_X_FORWARDED_ALL;
+}