feat(docker): prepare portable images with runtime hotel configuration
This commit is contained in:
@@ -19,9 +19,7 @@ const schema = z.object({
|
||||
export async function POST(request: Request) {
|
||||
if (
|
||||
request.headers.get("origin") !==
|
||||
new URL(
|
||||
process.env.APP_URL || process.env.NEXT_PUBLIC_APP_URL || request.url,
|
||||
).origin ||
|
||||
new URL(process.env.APP_URL || request.url).origin ||
|
||||
!request.headers.get("content-type")?.startsWith("application/json")
|
||||
)
|
||||
return new Response(null, { status: 403 });
|
||||
|
||||
Reference in New Issue
Block a user