I'm finally making myself learn JavaScript and the DOM.
Whilst reading about the same-origin security policy I thought "I wonder if you can dynamically insert a script tag into the DOM and the browser will download whatever URL you put in as the src and bypass the same-origin policy."
If this works, I'm going to be nerd-famous!
Then I read some more and find out someone else thought of this 8 years ago and it even has a name: JSONP.
Originally posted on Google+ · October 25, 2013



