Next.js Discord

Discord Forum

API Route client only

Answered
Toyger posted this in #help-forum
Open in Discord
ToygerOP
I want to make an api route that only the website/client can access not like me with insomnia or postman even if I copy the exact same request only the website can fire to it
Answered by @ts-ignore
that's just not possible
View full answer

5 Replies

ToygerOP
anyway to do this without authorization like a bearer token
:AAAA:
Answer
ToygerOP
grief
ill check for ip then ig