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
21
u/MorallyDeplorable Jan 17 '20
Otherwise it's running in the same code as the store and that's pretty bad practice. You want your payment server separate from everything else so you don't add the whole site as an attack surface to attack your payments.