flexisip-account-manager/flexiapi/app/Http/Middleware/TrustProxies.php
Timothée Jaussoin 17fcaf02d3 Import a new API, build with Laravel
- Authentication handled by DIGEST (MD5 and SHA-256)
- Support of CLRTXT passwords in the DB
- Expose sip account devices through the API
- Tests, with databases running in memory
- Documents for the deployment and API usage
2020-02-03 15:20:48 +01:00

23 lines
436 B
PHP

<?php
namespace App\Http\Middleware;
use Fideloper\Proxy\TrustProxies as Middleware;
use Illuminate\Http\Request;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array|string
*/
protected $proxies;
/**
* The headers that should be used to detect proxies.
*
* @var int
*/
protected $headers = Request::HEADER_X_FORWARDED_ALL;
}