![](/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.