3 ms·
site owners would put the generated code directly on their site That would defeat the protection which the Same Origin policy gives you (since the iframe would
by cperciva 14y ago
site owners would put the generated code directly on their site
That would defeat the protection which the Same Origin policy gives you (since the iframe would have the same origin as the rest of your site).
or that stripe would host the service themselves
Yes, that would be much better.
- mrgreenfur 14y agoI meant that they'd put it directly on their pages, no iframe needed. Agree that it'd be much better if Stripe just did it themselves.
- cperciva 14y agoI meant that they'd put it directly on their pages, no iframe needed. At the expense of loading third party javascript directly into their pages, you mean?
- mrgreenfur 14y agoYeah, I guess that misses the point of isolating the javascript, doesn't it? So, the idea is good, but has to be offered by Stripe to really minimize any exposure.