mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-25 08:17:56 +00:00
794671ef32
Following Laravel guidance and GitHub diff. Not yet in tested state with app-specific changes made.
21 lines
385 B
PHP
21 lines
385 B
PHP
<?php
|
|
|
|
namespace BookStack\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(): array
|
|
{
|
|
return [
|
|
$this->allSubdomainsOfApplicationUrl(),
|
|
];
|
|
}
|
|
}
|