Reputation: 89723
I like the JSONP where we can get info cross-domainly however, what if some services do not support JSONP (and hence do not provide a callback?)
I need a solution to this problem.
I'm thinking if we have a tag like this <script id="s1" source="http://other.com/asd"></script>
how do we go about extracting the "contents" of s1
?
Initially I'd thought s1.innerHTML
would do the trick but well.. apparently it doesn't do the trick.
I'm wondering if anyone has any "hacks" that they would love to share.
HACKS ARE WELCOMED
Upvotes: 1
Views: 329
Reputation: 19999
This is a security feature. In the absence of any major security flaws, there's no way to perform a cross-site request without the cooperation of the site you're making the request to.
Upvotes: 3