Adding request headers when calling useServerFn for CSRF implementation
I am trying to implement CSRF wherein i need to pass request header which will be my csrf token received during login request, can someone direct on how to achieve this functionality. I am using useServerFn to make requests wherein this would be implemented
3 Replies
other-emerald•4mo ago
just pass in the
{headers}
as an argument?other-emerald•4mo ago

sensitive-blueOP•4mo ago
That worked. Thank you.