#_next/image request misses to send header on production

1 messages · Page 1 of 1 (latest)

quaint radish
#

The request are as follow

http://localhost:3000/_next/image?url=/api/image
Headers:
Cookie: site_cookie=eyJhJWTToken

And on the api, using cookies() from "next/headers" it returns empty

h { _parsed: Map(0) {}, _headers: Headers {} }

Seems like there might be a regression, as it has worked before before a next upgrade.

odd heartBOT
#

🔎 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)

viral sandal
quaint radish
#

actually i managed to reproduce it on non-production aswell

#

i might try to make a simple reproducible?

quaint radish
#

unless it might not be a regression, but an intended thing, to not to be used with authentication due to it caching the image?

viral sandal
#

That’s actually a good point tbh…