DEV Community

Discussion on: Security for the front-end developer

Collapse
 
hansenc profile image
Chris Hansen

One section to add would be guarding against modification of JS files. Some prominent sites have had credit card numbers stolen this way.

Step one is making sure storage is secured properly (e.g. S3 permissions). An advanced move would be to generate checksums when JS files are deployed, then validate those checksums each time they’re used to ensure they haven’t changed.