79369375

Date: 2025-01-19 17:05:12
Score: 1
Natty:
Report link

hi i just met this problem. I found that adding next headers to your service layer (OR where you use the api written in route.ts) would make it works.

import { headers } from "next/headers"

const res = await fetch("api/post", {
  headers: headers()
})

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: koo dev