![](/img/trans.png)
[英]find where in the code an http request was made using chrome dev tools
[英]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.