T
TanStack4mo ago
stormy-gold

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
sensitive-blue4mo ago
I feel you should get access to the request
sensitive-blue
sensitive-blue4mo 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-gold
stormy-goldOP4mo ago
That worked, thanks.

Did you find this page helpful?