chore(debug): output request headers in function
This commit is contained in:
7
app/api/web/check-headers/route.ts
Normal file
7
app/api/web/check-headers/route.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { NextResponse } from "next/server"
|
||||||
|
|
||||||
|
import type { NextRequest } from "next/server"
|
||||||
|
|
||||||
|
export async function GET(request: NextRequest) {
|
||||||
|
return NextResponse.json(Object.fromEntries(request.headers.entries()))
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user