Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate and Sanitize requests with Zod/Valibot #60

Open
williamssam opened this issue Jul 13, 2024 · 0 comments · Fixed by #74
Open

Validate and Sanitize requests with Zod/Valibot #60

williamssam opened this issue Jul 13, 2024 · 0 comments · Fixed by #74

Comments

@williamssam
Copy link
Contributor

williamssam commented Jul 13, 2024

Validate all requests (query, params, body) with zod or valibot and throw custom error if validation fails.

Also sanitize requests after validation to prevent malicious attacks such as SQL injection and cross-site scripting (XSS).

@williamssam williamssam changed the title Validate all requests with Zod/Valibot Validate and Sanitize requests with Zod/Valibot Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant