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/robertbieber Jan 17 '20

By allowing your 'clean' JavaScript you are also allowing your ISP or any other shitty agency to inject JavaScript onto your browser which can cause unforeseen issues.

This is nonsensical. If you're using https, no one can inject anything. If you're not, any intermediary can inject anything they want regardless of whether you used JS yourself or not