Next.js Discord

Discord Forum

Consuming API

Unanswered
African Slender-snouted Crocodil… posted this in #help-forum
Open in Discord
Original message was deleted.

13 Replies

where is your route.ts file located
if you access /api/cookie, then your route.ts file should be in /api/cookie/route.ts
can you try it in postman first
or rest/curl
hit localhost:3000/api/cookie
try using fetch() instead of axios
just to check
no worries
can you try writing localhost:3000 instead of from .env
can you try writing localhost:3000 instead of from .env
can you try without localhost:3000
so just directly /api/cookie
which one is that