TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Include this JS library to enable cross-origin requests

20 点作者 odedgolan超过 11 年前

10 条评论

untog超过 11 年前
Overwhelmingly terrible idea. Routing your web site traffic through an entirely unknown third party server. Overwrite the global XMLHttpRequest object.<p>Please tell me this is a joke to show off terrible security practise?
评论 #6794411 未加载
Joe8Bit超过 11 年前
Routing all your x-domain requests through an unknown third part via vanilla HTTP? What could possibly go wrong?
评论 #6794361 未加载
drderidder超过 11 年前
Please don&#x27;t use this. JSONP and CORS are the accepted methods for cross origin requests.
评论 #6794380 未加载
buzzedword超过 11 年前
How is this remotely trending? Yes, HN, let&#x27;s vote a MITM attack to the frontpage. This is a terrible idea.
评论 #6794324 未加载
评论 #6794334 未加载
Scriptor超过 11 年前
This is just a proxy. If developers wanted to go this route they would set up the proxy on their own server instead of routing it through a 3rd party.
评论 #6794316 未加载
Rami114超过 11 年前
If you need to ask why it is bad to route traffic through an untrusted third party over HTTP, for the love of god stop building web applications. This is not the right tool for the problem it&#x27;s trying to solve.
评论 #6794587 未加载
silasb超过 11 年前
I would let the users know that requests get routed through a server you control.
评论 #6794301 未加载
jscheel超过 11 年前
I&#x27;ll probably never use this library for anything, but I&#x27;ve submitted a pull request that takes out their 3rd party proxy and merely suggests it in the error that is thrown if you don&#x27;t define your own. <a href="https://github.com/TOMODOcom/TOMODOkorz/pull/1" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;TOMODOcom&#x2F;TOMODOkorz&#x2F;pull&#x2F;1</a>
Couto超过 11 年前
Seems a cool idea to use with mockups and prototypes, but an awful idea to use in a serious product.
评论 #6794347 未加载
captn3m0超过 11 年前
If you trust Yahoo!, you can try proxying requests via Yahoo Pipes for Cross-Origin support. Not that I recommend it, though.<p>[1]: <a href="https://gist.github.com/psychemedia/316660" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;psychemedia&#x2F;316660</a>