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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Cross-Site HTTP Requests Now Supported in Firefox

65 点作者 shmichael超过 15 年前

3 条评论

ratsbane超过 15 年前
- Looking forward to using these new HTML-5ish features: storage, location, workers, accelerometer... It's going to be like web 2.0 all over again.<p>- The Mozilla Developer site has a lot of good documentation and examples: <a href="https://developer.mozilla.org/en/Firefox_3.6_for_developers" rel="nofollow">https://developer.mozilla.org/en/Firefox_3.6_for_developers</a>
评论 #1064927 未加载
评论 #1064924 未加载
idm超过 15 年前
whoah, whoah.... I have really wanted to use cross-site http requests, but I'm having some trouble understanding certain decisions here.<p>Why are they using a new set of HTTP headers to describe scenarios that are already covered by HTTP response codes? Why does the client send an Origin header at all in the first place, when it can be inferred from the referer? Why does the server respond with a list of allowed origins, when it could simply send an HTTP response code to say allowed/not allowed/auth required/etc.<p>I'm probably missing something, but this just doesn't add up...<p>EDIT:<p>Oh - maybe because there isn't a good javascript interface to HTTP response codes? Well, it sounds like a client-side solution would be to build this interface, rather than making the server support some weird headers that will still rely on the client to faithfully perform access control.
geuis超过 15 年前
I was just playing with this the other day. One interesting this now let's you do is cross-site basic http authentication if your server is configured to accept the new headers.<p>I'm talking to YOU, Twitter...
评论 #1065405 未加载