This commit is contained in:
root 2019-12-16 13:40:14 +08:00
parent 417b12768b
commit 87da5846a9

View File

@ -14,7 +14,7 @@ use Illuminate\Http\Request;
Route::get('/', function (Request $request) { Route::get('/', function (Request $request) {
if (config('v2board.app_url')) { if (config('v2board.app_url')) {
if ($request->server('HTTP_HOST') !== parse_url(config('v2board.app_url'))['host']) { if ($request->server('HTTP_HOST') !== parse_url(config('v2board.app_url'))['host']) {
abort(403, 'forbidden'); abort(403);
} }
} }
return view('app', [ return view('app', [