r/shittyprogramming • u/mikaey00 • Jan 16 '20
JavaScript: it's a security risk
Overheard on a call one of my colleagues just got off of:
Colleague: "So why aren't you able to add our JavaScript to your checkout page?"
Client: "Oh, we disable JavaScript on our entire checkout page."
Colleague: "...why?"
Client: "It's a security risk."
Colleague: <head explodes>
136
Upvotes
View all comments
Show parent comment
1
u/Joniator Jan 17 '20
Yes, this problem is everywhere if distributed dependencies are involved.
But lacking almost any kind of standard library, and importing external packages for simple functions like left-pad an own dependency is terrible if you want a secure system.
And this is exactly what they do, and I have yet to see a dependency graph like NPM just for a ui framework.