如果无法在JSONP中修改标头。 Chrome中的Twitter扩展如何运作? [英] If impossible to modify header in JSONP. How does twitter extension in Chrome work?
本文介绍了如果无法在JSONP中修改标头。 Chrome中的Twitter扩展如何运作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在我正在努力用Javascript做Twitter客户端。
在我读完这个主题后,我有疑问
Now I'm working to do twitter client with Javascript.
After I read this topic, I have question
在使用JSONP时,他告诉我不可能修改HTTP标头。
如果是真的。 twitter扩展程序如何在Chrome中运行?
我认为Chrome扩展程序也使用Javascript。
He told impossible way to modify HTTP Header when using JSONP.
If it's true. How does twitter extension work in Chrome ?
I think Chrome extension use Javascript, too.
推荐答案
扩展程序拥有更多权限,然后在页面内执行普通JavaScript代码。点击此处:
Extensions have more privileges then "normal" JavaScript code executing within a page. Check here:
- http://code.google.com/chrome/extensions/xhr.html
这篇关于如果无法在JSONP中修改标头。 Chrome中的Twitter扩展如何运作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文