mirror of
https://github.com/koel/koel
synced 2024-12-24 11:33:05 +00:00
18 lines
332 B
PHP
18 lines
332 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Illuminate\Http\Middleware\TrustHosts as IlluminateTrustHost;
|
|
|
|
class TrustHosts extends IlluminateTrustHost
|
|
{
|
|
/**
|
|
* @return array<int, string>
|
|
*/
|
|
public function hosts(): array
|
|
{
|
|
return [
|
|
$this->allSubdomainsOfApplicationUrl(),
|
|
];
|
|
}
|
|
}
|