How to access request headers in middleware?
I would like to reject certain requests based on the origin header. How can I access it in the middleware?
3 Replies
sensitive-blue•4mo ago
I feel you should get access to the request
sensitive-blue•4mo ago
Server Functions | TanStack Start React Docs
What are Server Functions? Server functions allow you to specify logic that can be invoked almost anywhere (even the client), but run only on the server. In fact, they are not so different from an API...
stormy-goldOP•4mo ago
That worked, thanks.