2 ms·
They key here though is that evaluating untrusted code from a 3rd party site is not a requirement of the transport. That eval is in the client code and it could
by tlrobinson 18y ago
They key here though is that evaluating untrusted code from a 3rd party site is not a requirement of the transport. That eval is in the client code and it could just as easily be a safer alternative (either checking that it's sanitary with a regex or using a library's JSON decode function)
With JSONP you necessarily have to execute untrusted code, since JSONP works by loading JavaScript in a <script> tag.
- lux 18y agoI see. Thanks for that info, I wasn't familiar with JSONP's technique. In that case, this does sound like a pretty cool library!