Earlier quoted context omitted.
Tell you what. Since I'm not a big fan of the lynchmob, here's the only positive critique I'll give you: proxying isn't an altogether terrible idea. It's not my first go to, but it does have it's place. HOWEVER. Allowing a third party to manage it, is. If you genuinely want to create some buzz and interest, source the serverside of this, and write some docs up how to deploy it to AWS, Heroku, etc. Bundle the JS with…
OK, it is a trust issue. However you can use this library and change the proxy url to your own server and still get the benefit of the fact that you don't need to rewrite external requests and just use jQuery.
Show HN: Include this JS library to enable cross-origin requests
31–33 of 33 posts
Re: Show HN: Include this JS library to enable cross-origin requests
#32Routing all your x-domain requests through an unknown third part via vanilla HTTP? What could possibly go wrong?
It's just your cross-origin traffic, which is not possible without this library, everything else will behave exactly the same.
Not to mention that the API endpoint is HTTP only, meaning everything is broadcast in the clear.
Also, cross origin requests are perfectly possible without this library, it's precisely why we use JSONP and CORS.
When it comes to security, this library is a collection of anti-patterns. As well as the JS anti-pattern of not overwriting native objects, such as XMLHttpRequest in this context.
Re: Show HN: Include this JS library to enable cross-origin requests
#33Earlier quoted context omitted.
"You can only use JSOP and CROS with sites you have control over or are designed to behave and support external requests." That's kind of the point.
It limits the thing you can do. This library allows you to easily get and display content from any external source.