mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Previously when we removed this from the response we only did so for requests that flowed through middleware and static handlers. We should ensure it's filtered in `sendResponse` as well. The header is only needed internally.
12 lines
200 B
JavaScript
12 lines
200 B
JavaScript
import { NextResponse } from 'next/server'
|
|
|
|
export function GET() {
|
|
const response = new NextResponse()
|
|
response.cookies.set({
|
|
name: 'example',
|
|
value: 'example',
|
|
})
|
|
|
|
return response
|
|
}
|