Show HN: Include this JS library to enable cross-origin requests
github.com
github.com
Please tell me this is a joke to show off terrible security practise?
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.
That's kind of the point.
You're asking that I trust you will not modify the response in any way shape or form. The very nature of software dev mandates that I do not trust data that is not my own; and even then, verify it. You're asking quite a lot here. This is by all points and purposes, a man-in-the-middle attack vector.
Leaving my front door open when I'm on holiday also makes more things possible. That does not mean I will like those things.
But if you have a blog and you would like to constantly display some specific content from a different webpage via ajax it seems like the easiest & most simple solution.
What happens to my application, if your service goes through a DDoS? What happens to my application, if you suddenly decide to close your service?
I'm pretty sure you can use these arguments about other services, but this service exactly, is not worth the risk.
I just don't trust it enough to use in production.