空"为"循环Facebook的AJAX [英] Empty "for" loop in Facebook ajax

查看:162
本文介绍了空"为"循环Facebook的AJAX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您浏览Facebook和使用萤火虫网络调试我注意到,Facebook的AJAX响应都开始用空的for循环。

While surfing facebook and using the Firebug network debugger I noticed that facebook's AJAX responses all start with an empty for loop.

例如:

for(;;);{...}

有谁知道这是为什么呢?我想这是为prevent某种形式的XSS攻击,但我不完全理解。谢谢!

Does anyone know why this is done? I assume it's to prevent some sort of XSS attack but I don't totally understand. Thanks!

推荐答案

像谷歌的

while(1);

脚本>

它$ P $包括本的pventing在&LT做进一步利用数据

it done for preventing of including this in <script> with further using the data

这篇关于空&QUOT;为&QUOT;循环Facebook的AJAX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆