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

0

u/[deleted] Jan 17 '20

[deleted] — view deleted comment

12

u/Earhacker Jan 17 '20

Amazon do. Your basket is still a JavaScript-y page, but after you click Purchase you’re on a different server. I last checked this a couple of years ago, but their Purchase page works fine with JavaScript turned off.

eBay definitely do this. Their separate purchase page is called PayPal.