solidjs-community / solidjs-community/solid-primitives
add csrf helpers
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 162
- Avg merge
- 19h 40m
- Merged PRs (30d)
- 8
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by reviewing how Solid.js server functions and forms handle POST, UPDATE, and DELETE requests, then compare the requested generate and verify helpers with Bun.CSRF; done means an agreed API and coverage for CSRF protection across the stated mutation cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend-api-design, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100