繁体   English   中英

使用Chrome开发工具查找XMLHttpRequest的来源

[英]Find the source of an XMLHttpRequest using Chrome dev tools

我正在尝试调试一个不是我编写的Web应用程序。 发生了一个失败的XMLHttpRequest:

XMLHttpRequest cannot load ... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '...' is therefore not allowed access. 

有没有办法,最好使用Chrome开发者工具,找到这个电话的来源?

事实证明 - 是的,有。 我一直忽略的那个“XHR断点”选项:

在此输入图像描述

它完美地运作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM