solidjs-community/solid-primitives

add csrf helpers

Open

#771 opened on Mar 11, 2025

 (2 comments) (0 reactions) (0 assignees)TypeScript (153 forks)auto 404
enhancementhelp wanted

Repository metrics

Stars
 (1,541 stars)
PR merge metrics
 (PR metrics pending)

Description

Describe The Problem To Be Solved

its highly important to add csrf protection to forms and any mutation http verb (like POST, UPDATE, DELETE, etc.) in solid.js case, server functions.

Suggest A Solution

i think it'd be cool to add csrf generate and verify functions similar to Bun.CSRF: https://x.com/jarredsumner/status/1899194018480988259

Contributor guide