When making a POST request using Route handlers (App router- /app/api/webhook/route.ts) the request has some headers missing but when doing it with API routes (/pages/api/file.ts)all the headers are there. Here's an example, left panel is the API routes and right panels is Route handler both request are from the same source but for some reason the 'twitch-eventsub-message-timestamp' header is missing in the Route handler is there a reason for this or am i doing something wrong?
#Missing headers in request
3 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
I think it’s likely a problem with your client though, Next.js won’t remove headers from requests, do you sure the request has all headers present? Or you have missed these when calling the API?