mirror of
https://github.com/v2board/v2board.git
synced 2025-01-10 16:19:10 +08:00
update
This commit is contained in:
parent
1081bdbd8b
commit
417b12768b
@ -12,8 +12,10 @@ use Illuminate\Http\Request;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
Route::get('/', function (Request $request) {
|
Route::get('/', function (Request $request) {
|
||||||
if (config('v2board.app_url') && ($request->getSchemeAndHttpHost() !== config('v2board.app_url'))) {
|
if (config('v2board.app_url')) {
|
||||||
abort(403, 'forbidden');
|
if ($request->server('HTTP_HOST') !== parse_url(config('v2board.app_url'))['host']) {
|
||||||
|
abort(403, 'forbidden');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return view('app', [
|
return view('app', [
|
||||||
'title' => config('v2board.app_name', 'V2Board'),
|
'title' => config('v2board.app_name', 'V2Board'),
|
||||||
|
Loading…
Reference in New Issue
Block a user