Comment on Show HN: JSONP - enable cross-domain requests to any JSON API (w/ AJAX)Comments−mike_organon14yCORS is more secure than JSONP. http://en.wikipedia.org/wiki/Cross-origin_resource_sharing−lunaru14yAnd in case anyone is wondering, that's how the Easier option is implemented (CORS), whereas the Easy option is just JSONP.OP could probably make it more explicit since it's not just a JSONP service, but also a CORS relay.−NameNickHN14yI wanted to use CORS a while ago but without Opera and IE 6 and 7 supporting it, it'll take a while until it will be an alternative to JASONP.−catshirt14yirrelevant really- you can't set the CORS header on a remote API you don't own.−aidanfeldmanOP14ythat's kind of the point. CORS just tells the browser to block the response, so this proxies the request and simply changes the headers to avoid that restriction.−drivebyacct214yMore functional too, but it requires complicity from the remote server.−fooyc14yJSONP requires complicity from the remote server too
Comments
CORS is more secure than JSONP. http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
And in case anyone is wondering, that's how the Easier option is implemented (CORS), whereas the Easy option is just JSONP.
OP could probably make it more explicit since it's not just a JSONP service, but also a CORS relay.
I wanted to use CORS a while ago but without Opera and IE 6 and 7 supporting it, it'll take a while until it will be an alternative to JASONP.
irrelevant really- you can't set the CORS header on a remote API you don't own.
that's kind of the point. CORS just tells the browser to block the response, so this proxies the request and simply changes the headers to avoid that restriction.
More functional too, but it requires complicity from the remote server.
JSONP requires complicity from the remote server too