mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 20:28:48 +00:00
Update middleware.js
This commit is contained in:
parent
f767ff047f
commit
6ab57b7b14
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ export function middleware(req) {
|
|||
if (!host || !allowedHosts.includes(host)) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(
|
||||
`Host validation failed for: ${host}. Hint: Set the HOMEPAGE_ALLOWED_HOSTS environment variable to allow requests from this host.`,
|
||||
`Host validation failed for: ${host}. Hint: Set the HOMEPAGE_ALLOWED_HOSTS environment variable to allow requests from this host / port.`,
|
||||
);
|
||||
return NextResponse.json({ error: "Host validation failed. See logs for more details." }, { status: 400 });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue