r/shittyprogramming • • 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

72 comments sorted by

View all comments

Show parent comment

2

u/wizzwizz4 Jan 18 '20

At my company, all our users are internal,

This is an example of where you can make trade-offs where your users get the short end of the stick – since the users are within the company, you can make sure that any screenreaders function properly, it takes user input correctly, all of the machines can cope, security what-you-said, etc..

But putting these things out on the wider web? Not so good. Especially when people have to use it, or stand to lose out – even Twitter knows this.