I’m using Next.js 15 and trying to access request headers in a React Server Component inside the app/ directory using the new async headers() API introduced in this version.
Here’s the start of my page.tsx:
// app/users/page.tsx
import { headers } from 'next/headers'
export const dynamic = 'force-dynamic'
const UsersPage = async () => {
const headersList = await headers()
console.log(headersList)
return <div>Users Page</div>
}
export default UsersPage
However, the headersList I get is always empty:
HeadersList {
cookies: null,
[Symbol(headers map)]: Map(0) {},
[Symbol(headers map sorted)]: null
}




