CSRF Protection
I'm building an app with Tanstack start + Supabase and thought I'd ask Cursor to do a security audit and it gave CSRF protection ad a critical security issue.
Is there an elegant way of adding CSRF protection into my mutation routes? Or does Tanstack start have a nice built-in way to handle CSRF?
Here's an example of how most mutations are created in my app
Here's the CSRF issue highlighted in Cursor's audit of my app:
Is there an elegant way of adding CSRF protection into my mutation routes? Or does Tanstack start have a nice built-in way to handle CSRF?
Here's an example of how most mutations are created in my app
Here's the CSRF issue highlighted in Cursor's audit of my app: