DEV Community

Discussion on: What are some fundamentals of security every developer should understand?

Collapse
 
dariojavierrick profile image
Dario Javier Rick

1- Never trust user input. Always validate both frontend and backend
2- Sanitize the data. Use prepared statements
3- Set Access-Control-Allow-Origin to deny
4- Your application must login to the database with the minimum rights as possible.
5- Change the passwords frequently
6- Keep server system up to date
7- Configure the firewall properly
8- Consider to use CDNs
9- Be aware about the data you are dealing.